Hibernate Helper: utility methods
This page describes utility functions which are available in the Hibernate runtime plugin.
Retrieving cross referencers
The HibernateHelper class offers a method for retrieving EObjects which refer to a specified EObject:
HibernateHelper.INSTANCE.getCrossReferencers(name, session, eobject);
The first parameter is the name of the SessionFactory registered using the HibernateHelper.
The second parameter is a session object. The caller of this method should ensure that a transaction has been started before calling getCrossReferencers.
The third parameter is the EObject for which the referencers are to be retrieved.
The method returns an array of EObjects which refer to the passed eobject. If no referencer is found then an array with length zero is returned.