-->
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: legacy database to java file question
PostPosted: Wed Jun 17, 2009 5:31 pm 
Newbie

Joined: Wed Jun 17, 2009 5:15 pm
Posts: 2
I just started working on a project that uses hibernate. Part of the project uses the legacy database schema to reverse engineer the java classes and part of the project uses annotations to create the database schema. I don't like this and I am trying to find a way to create all of the schemas from java files so that the project is consistent. My idea is to reverse engineer from the schema once and set ejb3="true" when running hbm2java. From then on when I build the project I could just use the annotations in the java files to create the database (as the rest of the project does already). Does this make sense? Is that what the annotations created by ejb3="true" are intended for? I'm very new to hibernate and this sort of development in general so any help would be appreciated.


Top
 Profile  
 
 Post subject: Re: legacy database to java file question
PostPosted: Mon Jun 29, 2009 10:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes that would work in theory, but isn't there a reason to why the tables are in the DB in the first place ?:)

_________________
Max
Don't forget to rate


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.