[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4797) Backref properties should be ignored when building the JPA 2 metamodel (leading atm to java.lang.IllegalArgumentException: Cannot determine java-type from given member [null])
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Fri Jan 15 05:48:31 EST 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved HHH-4797.
-----------------------------------
Resolution: Fixed
Fixed but I've found another issue :)
> Backref properties should be ignored when building the JPA 2 metamodel (leading atm to java.lang.IllegalArgumentException: Cannot determine java-type from given member [null])
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HHH-4797
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4797
> Project: Hibernate Core
> Issue Type: Bug
> Components: entity-manager
> Affects Versions: 3.5.0-Beta-3
> Reporter: Emmanuel Bernard
> Assignee: Emmanuel Bernard
> Fix For: 3.5.0-Beta-4
>
>
> When I specifically run VersionsJoinTableRangeComponentNamingTest
> I've got a
> java.lang.IllegalArgumentException: Cannot determine java-type from given member [null]
> at org.hibernate.ejb.metamodel.AttributeFactory$BaseAttributeMetadata.<init>(AttributeFactory.java:591)
> at org.hibernate.ejb.metamodel.AttributeFactory$SingularAttributeMetadataImpl.<init>(AttributeFactory.java:671)
> at org.hibernate.ejb.metamodel.AttributeFactory$SingularAttributeMetadataImpl.<init>(AttributeFactory.java:661)
> at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:542)
> at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:81)
> at org.hibernate.ejb.metamodel.MetadataContext.wrapUp(MetadataContext.java:177)
> at org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(MetamodelImpl.java:66)
> at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:79)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:752)
> at org.hibernate.envers.test.AbstractEntityTest.init(AbstractEntityTest.java:94)
> at org.hibernate.envers.test.AbstractEntityTest.init(AbstractEntityTest.java:82)
> The member is null because the "property" has a backref getter and hence no member is returned by NORMAL_MEMBER_RESOLVER. I think we should ignore backref properties
> Does that make sense? If we agree, I will go and apply a fix.
--
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