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

Jelle De Vreese (JIRA) noreply at atlassian.com
Tue Nov 2 09:27:47 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38966#action_38966 ] 

Jelle De Vreese edited comment on HHH-5712 at 11/2/10 8:27 AM:
---------------------------------------------------------------

DetailPO implements Detail

      was (Author: jelledv):
    Similar problem
  
> 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