-->
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: ReverseEngineering configuration
PostPosted: Mon Apr 11, 2005 1:10 pm 
Newbie

Joined: Fri Apr 08, 2005 11:16 am
Posts: 10
Hibernate version:
HibernateEXT tools alpha2

I am using the hibernate tools to reverse engineer a database into my POJO classes. I need to change the naming conventions that are being used though.

1. I don't want the composite ID classes that are created to end in Id. I want them to end in PK. I also want the composite ID property in the POJO to be pk and not id. Any advice on how to make this type of configuration change? It does not seem like a velocity template thing.

2. I don't want the ReverseNamingStrategy class to capitalize the first letter of my properties in my POJO. I want them to be lowercase. Whats the best way to change this behavior? I am assuming it is to provide my own implementation but how do I "plug it in?"

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 11, 2005 8:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
At the moment there is little external access to these aspects. Yes there will be and internally its mostly there. I suggest for the moment you change the code and rebuild. Obviously, if you develop a good way to expose some of these items, we would be interested in having a look at the patch.


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.