| Author |
table/column alias with hibernate
|
Divan Mostert
Greenhorn
Joined: Jan 24, 2006
Posts: 4
|
|
I am hoping that someone can be of help to me as the Hibernate guys are NOT very keen on helping. So here goes: When I generate the property element, I use the column attribute foe the actual valid column name and the name attribute to store the original name that corresponds to my application. Now this work 100% However, when I have a list with a one-to-many inside, I assumed that the table attribute would have the same functionality, but it doesn't. The insert seems to work ok, but when it generates the select statement, it uses the incorrect name attribute of the list. Can anybody help???
|
 |
Gerardo Tasistro
Ranch Hand
Joined: Feb 08, 2005
Posts: 362
|
|
|
Can you post the code?
|
 |
Divan Mostert
Greenhorn
Joined: Jan 24, 2006
Posts: 4
|
|
Thanks for the quick reply.. Here is my mapping code: [code tags added - Paul Sturrock] [ January 24, 2006: Message edited by: Paul Sturrock ]
|
 |
Divan Mostert
Greenhorn
Joined: Jan 24, 2006
Posts: 4
|
|
|
Does anyone have an idea???
|
 |
 |
|
|
subject: table/column alias with hibernate
|
|
|