Hi,
I have the following exception on the latest release:
Code:
SEVERE: an assertion failure occured (this may indicate a bug in Hibernate)
org.hibernate.annotations.common.AssertionFailure: Fail to process type argument in a generic declaration. Member : de.lsb.sample.persistenceinfrastructure.basic.domainmodel.entity.account.implementation.AccountImplJPA#histories Type: class sun.reflect.generics.reflectiveObjects.WildcardTypeImpl
at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.getClassFromGenericArgument(AttributeFactory.java:846)
at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:756)
at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:731)
at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:518)
at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:93)
at org.hibernate.ejb.metamodel.MetadataContext.wrapUp(MetadataContext.java:183)
at org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(MetamodelImpl.java:66)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:891)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:48)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:32)
at de.lsb.sample.persistenceinfrastructure.basic.infrastructure.EntityManagerFactory.getCurrentEntityManager(EntityManagerFactory.java:138)
at de.lsb.sample.persistenceinfrastructure.basic.infrastructure.EntityManagerFactory.getCurrentEntityManager(EntityManagerFactory.java:95)
at de.lsb.sample.persistenceinfrastructure.basic.application.PISSample.clearTables(PISSample.java:92)
at de.lsb.sample.persistenceinfrastructure.basic.application.PISSample.run(PISSample.java:236)
at de.lsb.sample.persistenceinfrastructure.basic.application.PISSample.main(PISSample.java:43)
I get this only when my mapping look like this:
Code:
@OneToMany(targetEntity = AccountImplJPA.class)
private Collection<? extends Account> accounts;
public Collection<? extends Account> getAccounts() {
return this.accounts;
}
Any idea?