This content has been marked as final.
Show 3 replies
-
1. Re: regarding jboss seam database problem
pavan.pavankkotturi.kumar.gmail.com Jan 22, 2010 11:20 AM (in response to pavan.pavankkotturi.kumar.gmail.com)i am also facing same problem
-
2. Re: regarding jboss seam database problem
lvdberg Jan 22, 2010 11:31 AM (in response to pavan.pavankkotturi.kumar.gmail.com)Hi,
your persistency is configured in such a way that it creates and drops the database every time you restart the server. Somewhere in your project directory (normally under the META-INF directory you will find a file persistence.xml which contains the whole setting for your application and some hibernate properties:
... <property name="hibernate.hbm2ddl.generate_ddl" value="true" /> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> ...
If you change create-drop to UPDATE, your database will be saved and its data.
Leo
-
3. Re: regarding jboss seam database problem
pavan.pavankkotturi.kumar.gmail.com Feb 2, 2010 7:59 AM (in response to pavan.pavankkotturi.kumar.gmail.com)Thanq it's working