-->
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: Middlegen: rename class in gui
PostPosted: Tue Jul 27, 2004 10:01 pm 
Beginner
Beginner

Joined: Mon Feb 09, 2004 3:06 pm
Posts: 26
Location: Tampa, FL
Is there any way to modify the generated class name from the middlegen gui? Our tablenames have some prefixes that I don't want used in the class name generation. Using Middlegen-Hibernate-r5.

_________________
Bill Pfeiffer


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 28, 2004 6:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
This is one of my TODOs. Its not as easy as enabling editing of the field since relatuionships can be involved. The solution is not hard just needs to be done.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 02, 2004 3:36 am 
Beginner
Beginner

Joined: Mon Jun 21, 2004 2:41 pm
Posts: 40
After you have generated the xml files for the first time...

Look in the src directory you should find something like X-prefs.properties


Do a search for the table name in the database. The first match should be the one you want. Change the value on the right hand side to the new class name that you want.

-David


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.