Default values for Hibernate POJO fields using annotations?
posted 9 years ago
I have a Hibernate POJO which contains a boolean field, and if the object doesn't already exist (i.e. when a new one is created) then I want the boolean field value to default to false. How can I accomplish this using annotations?