Donnerstag, 28. Mai 2009

JPA and default values

Today I found out that it is not possible to define default values of fields which are mapped to a column of table in a database. The workaround is to do the work in the default constructor and a manual tweak of the generated database schema. IMHO this is one of the cases which prevents fully automatic schema generation and increases the development time and chance of bugs :-(

Keine Kommentare:

  © Blogger template 'Morning Drink' by 2008

Back to TOP