NHibernate and hbm2dll update attribute
Posted
by michael lucas
on Stack Overflow
See other posts from Stack Overflow
or by michael lucas
Published on 2009-08-31T21:13:12Z
Indexed on
2010/04/09
18:53 UTC
Read the original article
Hit count: 296
Hi,
i'm using NHibernate with Sdf database. In my hibernate.cfg.xml file i've set:
<property name="hbm2ddl.auto" value="update"/>
But this does not seem to work at all. "Update" attribute should make NHibernate generate missing tables and columns during application launch, but it does not happen.
If i want missing tables geenrated I have to set hbm2dll.auto property to "create" which is not an option for me since it drops existing db content beforehand.
I experienced the same problem with PostgreSql problem. Am I missing something?
© Stack Overflow or respective owner