-->
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: Hibernate Annotations (hbm2ddl)
PostPosted: Fri Oct 10, 2008 8:31 am 
Beginner
Beginner

Joined: Thu Sep 18, 2008 5:18 am
Posts: 28
My questions:

1. If one uses Hibernate Annotations and Spring MVC, is there a need to create the tables manually... does
Code:
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</prop>
<prop key="hibernate.hbm2ddl.auto">create</prop>

creates the table automatically?

2. Do i have to ensure that the class containing hbm2ddl exist somewhere in my application path, if so what class is that? if not where does this xml find hbm2ddl?

3. Lastly, for the above to work, do i always need import.sql?


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.