Hibernate and default values
- by Schildmeijer
Is it possible to use annotations to map a default value for a column?
eg. I have a column named 'date' which is supposed to be '0000-00-00 00:00:00' if not date is explicitly given. I know I can add this to the ctor of the Entity. But then the default behavior will no be present in my database backend. (eg. Default column in mysql)