Beginner |
 |
Joined: Sun Oct 16, 2005 12:37 pm Posts: 47 Location: Romania, Galati
|
I have a lot of columns, in one table, with default values (but nullable columns). Is there a way to set all these default values to corespondent properties before save persistent object... or a way to reduce insert command generated by hibernate so it not include columns with default values (only those I didn't set with setter).
There are a lot of work to set properties to their default, and if I don't do that I find NULL in database (and isn't acceptable).
Need help, thx.
Hibernate version:3.0.5
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:Mysql-4.1.7; JConnector-3.0.14-Production
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
|
|