Emmanuel Thanks for your answer!
I did this and now it finds the table but when I make a query in hibernate like this:
Code:
where ? in inode.parents.elements
It tries to bring back all the items in tree like this:
Code:
where 1057 in (select parents0_.relation_type, parents0_.tree_order, parents0_.parent from tree parents0_ where folder.inode=parents0_.child)
and the query should be like:
Code:
where 1057 in (select parents0_.parent from tree parents0_ where folder.inode=parents0_.child)
using only the
parent not the other two attributes.
is there any way I can tell it from inode.parent.elements that I only want the parent???
thanks!