1. JPA - Default value for non-nullable column coderanch.comOpenJPA seems to be causing a defect with an exception to be thrown if the application tries to persist a null value into a non-nullable column that has a default value. For example: The table ABC_LKP has a column APPLE VARCHAR2(1 BYTE) DEFAULT 'N' NOT NULL OpenJPA errors out complaining Cannot insert null into non nullable column Has anyone come across ... |
2. Final considerations on default value on not nullable column forum.hibernate.orgHi, I read a lot of topics about setting default values for not nullable columns. A lot of discussions but not a final "best" solution... I'm working with Hibernate annotations and I know that "default" option is not supported; somebody says a solution is an interceptor (?), in hibernate sites the proposal is "UserType". I think this could be a good ... |
3. Nullable default, changing it system wide to false forum.hibernate.org |