I'm trying to figure out how to find out what is the owner list of a list item.
My list mapping is:
Code:
/**
* @return m_listItems
* @hibernate.list
* lazy="true"
* cascade="all"
* @hibernate.collection-key
* column="ListId"
* @hibernate.collection-index
* column="I"
* @hibernate.collection-one-to-many
* class="com.mercado.s2002.businessmng.objects.rules.RuleBO"
*/
public List getList() {
return m_listItems;
}
Now, suppose I have a list item (RuleBO) persistent instance, how can I find out which list holds it? I know the DB holds the list ID but I can't find out how to request it from Hibernate.