[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5712) AssertionFailure when collection contains a wildcard type

Jelle De Vreese (JIRA) noreply at atlassian.com
Tue Nov 2 05:45:51 EDT 2010


AssertionFailure when collection contains a wildcard type
---------------------------------------------------------

                 Key: HHH-5712
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5712
             Project: Hibernate Core
          Issue Type: Bug
    Affects Versions: 3.6.0
            Reporter: Jelle De Vreese


{noformat}
org.hibernate.annotations.common.AssertionFailure: Fail to process type argument in a generic declaration. Member : path.to.SubjectPO#getDetails Type: class sun.reflect.generics.reflectiveObjects.WildcardTypeImpl
	at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.getClassFromGenericArgument(AttributeFactory.java:846)
{noformat}

{code}
@Override
@OneToMany(mappedBy = "subject", targetEntity = DetailPO.class)
@NotEmpty
public Set<? extends Detail> getDetails()
{
    if (details == null)
        details = new HashSet<Detail>();
    return details;
}
{code}

-- 
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