Hi, I followed the JBoss IDE tutorial and I want to recreate my DB (mySql) at every deploy of my ear file.
I added the ppty hibernate.hbm2ddl.auto" value="create-drop" in the persistance.xml file of my .par but it fails. I'm sure the persistance.xml is correctly loaded because my tables are created in My SQL but the tables are not re-created when I redeploy my ear. Any Idea? By the way, Where could I find doc on the parameters of this XML. I looked in the jboss & hibernate sites but I found nothing... ====== my persistance.xml: (I added some extra spaces to have a correct display) < entity-manager > < name >sqm_entity_manager< /name > < jta-data-source > java:/MySqlSqmDS< /jta-data-source > < properties > < property name="hibernate.hbm2ddl.auto" value="create"/ > < /properties> < /entity-manager > === regards, Guillaume View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913143#3913143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913143 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user