-->
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: default naming for many-to-one properties
PostPosted: Fri Aug 01, 2008 2:21 pm 
Newbie

Joined: Fri Aug 01, 2008 12:46 pm
Posts: 1
Hi,

From what i have read in the documentation, as said in section 5.2.4.3, we can override the name given to the property of a many-to-one relationship, which would be, by default, based on the name of the referenced table.

but this has to be done for each foreign key constraint. suppose you have several tables with different columns that referent the same other table

table a
c references b
d references b

table b

the reverse engeneering would give you the properties bByC and bByD but i'd rather have them named c and d.

is there a way to make the names of all properties in many-to-one relationships be kept as the names of the referring columns?


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.