I already have a table created by EJB3 and Hibernate. When adding a new field to the object model like this:
@Column( name = "NEW_FIELD", columnDefinition = "DOUBLE default 0", nullable = false )
this not done right and nullable is set to True for the new field and all previous records have this field set to null (not the desired default value).
How can I make sure the new field will have nullable set to false ?
Thanks for help.
Since you use column definition, we no longer have the ability to set automatically the nullable to true, you'll have to do it yourself in the columnDefinition