[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5712?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira