Skip to content
Advertisement

Tag: mybatis

How to prevent unintended default values from MyBatis queries?

I have the following Java class: The class represents a database table called example. I can use the following SQL query to fetch Example instances from the table with MyBatis: Let’s say that I will add a new field to the table and the class: boolean third. However, if I don’t remember to add the field to the select queries,

Advertisement