-->
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 chopping off "s" and "es"
PostPosted: Sat May 01, 2004 5:16 pm 
Beginner
Beginner

Joined: Thu Apr 29, 2004 9:36 am
Posts: 28
I have several tables ending in "es" (ex. Codes, Dates) and Middlegen + Hibernate plugin are returning the name minus "es" (ex. Cod and Dat) for the Domain class name. I can edit the files after they're generated, but it's quite an annoyance, considering there are a decent amount of them I have to mod. Anyway, is there anyway to allow the editing of the domain name in the Middlegen GUI, without making a CVS fork? I like the feature to automatically remove the "s"/"es", but it can cause problems.

Cheers,
Tyler


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 01, 2004 10:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have improved the algorithm for allocating names. Its not perfect but you can try the latest CVS version and see what milage you get.

BTW: Don't need to fork the code - create a patch, send it to me and I will consider using it.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 01, 2004 10:02 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can also use the Ant <table> tags to allocates sigular and plural names. See the Middlegen docos.


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.