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: Multiple columns mapping to same table naming convention
PostPosted: Wed Nov 16, 2005 4:39 pm 
Newbie

Joined: Mon Sep 26, 2005 9:10 pm
Posts: 4
I have 2 tables
T1 : col1 , col2 , col3
T2 : col4 , col5 , col6

col2 and col3 from table T1 maps to col5 in table T2... when I am using hibernate tools to generate the mapped columns in T1 look like

T1{
String col1;
T2 t2; --> col2 mapping
T2 t2_1; -->col3 mapping
}.. and the getter methods looks the same ..


how do I specify in configuration to generate these properties as the column names ...

I want the class to be like this
T1{
String col1;
T2 col2; --> col2 mapping
T2 col3; -->col3 mapping
}..

How do I achive this using hibernate tools? don't want to edit the files manully.

thanks
Krishna


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.