• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

table/column alias with hibernate

 
Divan Mostert
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code?
 
Divan Mostert
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone have an idea???
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic