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: Creating tables
PostPosted: Tue Sep 26, 2006 12:04 pm 
Newbie

Joined: Tue Sep 26, 2006 11:54 am
Posts: 10
Being new to hibernate, and having the chance to start a new project with the latest hibernate, I'd like to start using a good pattern.

I am using annotations on entity classes. I'd like to programatically create the table that match an annotated class. I saw SchemaExport but this appears to accept an xml file as input. Can I convert the annotated class to XML? Or should I maintain in sync each annotated class with a matching XML file?

Can anyone point me to a good process for creating tables programatically in hibernate? I search all over the place but I do not find a clear answer to this.

Thanks,

--
Michel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 1:01 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
point your browser to the hibernate tools =) http://www.hibernate.org/255.html

You can use ant, or an eclipse plugin to go in either direction you want. from pojos to xml files to db table creation, or the other way around, generating the xml files and the pojos from the db schema

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.