[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5712) AssertionFailure when collection contains a wildcard type
Jelle De Vreese (JIRA)
noreply at atlassian.com
Thu Nov 18 04:28:13 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jelle De Vreese updated HHH-5712:
---------------------------------
Attachment: AttributeFactory.patch
Added patch file with possible solution
> 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
> Attachments: AttributeFactory.patch
>
>
> {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