-->
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.  [ 4 posts ] 
Author Message
 Post subject: Is it possible to create POJO from a SQL script
PostPosted: Tue Sep 27, 2005 8:34 am 
Newbie

Joined: Mon Sep 26, 2005 1:21 pm
Posts: 5
I have a SQL script with which I have created my database; is there any way that I can use the hibernate tool to create all the POJO files directly from the script? Since this is a big database, I don't want to manually create the hbm file. Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 10:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
we cannot parse the sql script directly, but you can reverse engineer directly from the database.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: But without a hbm, how can I reverse-engineer?
PostPosted: Tue Sep 27, 2005 1:21 pm 
Newbie

Joined: Mon Sep 26, 2005 1:21 pm
Posts: 5
Cause I don't have a hbm (don't want to create it manually) file, how can I reverse engineer directly from the database (I already have the database)?
Since I am new in this part, can you pls give me the steps to do it, thx a lot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 1:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
tools.hibernate.org

click the documentation button and look into how you can do it with either ant or eclipse (same engine behind)

_________________
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.  [ 4 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.