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
|