-->
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: Reverse engineer db and create .java files with Xdoclet tags
PostPosted: Fri Jul 23, 2004 2:42 am 
Beginner
Beginner

Joined: Tue Apr 06, 2004 6:13 pm
Posts: 39
Location: Pune, Maharashtra, INDIA
Hi,

My app uses an oracle database but the app does not use hibernate.

To start out quick I guess I should use MiddleGen.

But I did not get what I expected.

I configured it to use my Oracle DB.

but MiddleGen just created a lot of things I did not need. It created EJB, JDO, Struts action, objects.

I am only interested in getting .java classes for my tables with the getter methods decorated with Xdoclet tags.

I ran the ant task hbm2java and but got .java classes without the Xdoclet tags.

WHAT I AM MISSING ?

_________________
thks
G1


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 23, 2004 9:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Step 1: I suggest you use the R5 release which only includes the hibernate plugin so you will not get all of the other possible targets. [Or edit the ant file and comment out all of the plugins]

Step 2: Read the Wiki (and the supplied build.xml for the sample) and set the XDoclet tag to true for the hibernate plugin. URL http://hibernate.bluemars.net/98.html

That should do it.


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.