[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5712?page=c...
]
Jerome commented on HHH-5712:
-----------------------------
I have the same problem with this mapping
@ManyToMany(fetch = FetchType.LAZY, targetEntity = AbstractBlock.class)
@JoinTable(
name="B_WEBLOCK_COLUMN",
joinColumns=@JoinColumn(name="WEBBLOCK_ID"),
inverseJoinColumns=@JoinColumn(name="WEBBLOCK_SLAVE_ID")
)
List<? extends AbstractBlock> blocks = new ArrayList<AbstractBlock>(0);
with this exception
org.hibernate.annotations.common.AssertionFailure: Fail to process type argument in a
generic declaration. Member : eu.ttbox.model.ui.store.fragment.BlockColumn#blocks Type:
class sun.reflect.generics.reflectiveObjects.WildcardTypeImpl
at
org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.getClassFromGenericArgument(AttributeFactory.java:846)
- [na:na]
at
org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:756)
~[na:na]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira