-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Cant seem to recreate table with hibernate.hbm2ddl.auto prop
PostPosted: Fri Jul 27, 2012 12:34 pm 
Newbie

Joined: Sat Feb 19, 2011 9:07 am
Posts: 8
Hi,
I have used hibernate for a while now and reasonably happy with it. For this project I thought I would use JPA. I have a persistence.xml file with my hibernate configuration.

I am able to persist data successful once I create a table. Everytime I run my application the data is data added. Its like the update configuration is default. If I drop the table, it doesnt create the table? I have the following config in my persistence.xml. I can change the value to be anything, it just seems to be ignored??? I am using the right property? Has this been depreciated?

Code:
...
<property name="hibernate.hbm2ddl.auto" value="create" />
...


I am using hibernate 4.1.5 final and have reverted back to 4.1.4 to try it but this is the same. Can someone please help.

Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.