-->
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.  [ 1 post ] 
Author Message
 Post subject: Reverse Engenniering & Database Comments
PostPosted: Fri Jul 06, 2007 8:08 pm 
Newbie

Joined: Fri Jul 06, 2007 7:59 pm
Posts: 1
I'm working with the hibernatetools version 3.2.0.beta9a and I want to use the database comment to define de attributes names for my POJOs.

I know that the better way to do this is creating the templates. but, in this case I have to develop all the templates for generating de config files, de mapping files. This seems a lot of work.

I found and easy way but i have to chage the tool implementation.
What if the ReverseEngineeringStrategy interface define the method for getting de name of the attributes like

public String columnToPropertyName(TableIdentifier table, Column column);

I made the changes and work fine for me, and I can use more information of the column to define his name in my class, not just the column name.

you think you can include this change in the hibernate-tools?

tx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.