CollectionMetadata should expose isInverse() method
---------------------------------------------------
Key: HHH-2785
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2785
Project: Hibernate3
Issue Type: Improvement
Affects Versions: 3.2.5
Reporter: Manuel Dominguez Sarmiento
Priority: Minor
We've come across the need to determine whether a collection is inverse or not.
CollectionMetadata should expose the method directly.
Indirectly, we can do this:
if (collectionMetadata instanceof CollectionPersister) {
boolean inverse = ((CollectionPersister) collectionMetadata).isInverse();
...
}
This works because AbstractCollectionPersister implements both CollectionMetadata and
CollectionPersister, however it is not very OO. Implementing this would be simply a matter
of adding the method declaration to CollectionMetadata, since the only existing
implementation already has that method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira