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.  [ 3 posts ] 
Author Message
 Post subject: Obtaining package name with Reverse Engineering
PostPosted: Wed Mar 19, 2008 11:32 am 
Newbie

Joined: Wed Mar 19, 2008 11:19 am
Posts: 15
Location: Orlando
Hello Everyone,
There may already be a post about this, but I didn't see anything obvious, so I'm just going to ask. I created a reverse engineering class which does the small task I have already given it, but there's one problem: the output is not associated with a package. In the code gen config, there is a text box which allows me to supply this value. I've checked all the objects to which I have access and there is no getPackage() method. My class extends DefaultReverseEngineeringStrategy, so maybe the method is in another class? If I knew where the API was for all of these nifty classes, I might have an easier time looking there.


Top
 Profile  
 
 Post subject: I figured it out
PostPosted: Wed Mar 19, 2008 12:58 pm 
Newbie

Joined: Wed Mar 19, 2008 11:19 am
Posts: 15
Location: Orlando
Well, I figured out the answer on my own. In order to make the classes go to the correct package, you just create a new TableIdentifier using the desired params and then call super, passing the new TableIdentifier.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 1:52 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
basnaders - ReverseEngineeringStrategy.tableToClassName is what you overwrite to modify the full qualified classname.

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