I want to just retreive the foreign key id attirbute for my objects retreived from hibernate. I can of course get the child objects primary key, but fail to see how to get the foreign key directly.
ChildObject - table A: * id * name * value (* parent_id refering to id of table B, but is not normally accessible) ParentObject - table B * id * address The reason why I would like to have the foreign key directly is that I am going to use it as a filter, and it would be much more efficient both to match on the id alone and at the same time it will not be necessary to fetch the whole parent object from the database. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
