[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2785) CollectionMetadata should expose isInverse() method
Manuel Dominguez Sarmiento (JIRA)
noreply at atlassian.com
Tue Aug 14 13:52:13 EDT 2007
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list