HibernateMe wrote:
Hibernate-mapping default.
The default hibernate.properties file (I assume that's what you refer to, there is no default mapping for classes I guess) contain entries for schema export, like these:
Code:
## auto schema export
#hibernate.hbm2ddl.auto create-drop
#hibernate.hbm2ddl.auto create
#hibernate.hbm2ddl.auto update
hibernate.hbm2ddl.auto validate
I'd make sure that your shema is not regenerated by Hibernate upon startup. This is useful for testing, but it might be the cause of confusion in your case. The value 'validate' only checks that the mappings you defined match the database to some degree, so maybe you want that.
The generated log should also be able to help you verify this.
Roland