-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem understanding Schema generation from @Entity
PostPosted: Mon Jun 26, 2006 2:25 am 
Newbie

Joined: Mon Jun 26, 2006 2:21 am
Posts: 2
Hello.

I am missing a fundamental link here.. How do you get a Database Schema for a defined EJB3 Entity?

The annotations specify the schema completely, right? So do i still have to use .hbm.xml Files, or will the EM automagically generate my schema, or.. ?

Sorry, i'm just not finding any Information on that..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 3:30 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Check out this additional property in your persistence.xml:

Code:
            <property name="hibernate.hbm2ddl.auto" value="create-drop|create|validate|update"/>


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

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.