Laurent Almeras (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16641 (
https://hibernate.atlassian.net/browse/HHH-16641?atlOrigin=eyJpIjoiZmE2NW...
)
Re: @OrderColumn fails for a generic collection with NPE on XProperty.getMapKey() (
https://hibernate.atlassian.net/browse/HHH-16641?atlOrigin=eyJpIjoiZmE2NW...
)
Minimal test-case can be found here :
https://github.com/hibernate/hibernate-test-case-templates/commit/d73b8d2...
cd orm/hibernate-orm-5
mvn clean verify
# OK
cd ../../orm/hibernate-orm-6
mvn clean verify
# failure
Tests in error:
hhh16641Test(org.hibernate.bugs.JPAUnitTestCase): Cannot invoke
"org.hibernate.annotations.common.reflection.XClass.getName()" because the
return value of
"org.hibernate.annotations.common.reflection.XProperty.getMapKey()" is null
hhh16641Test(org.hibernate.bugs.JPAUnitTestCase): Cannot invoke
"jakarta.persistence.EntityManagerFactory.close()" because
"this.entityManagerFactory" is null
For both orm/hibernate-orm-5 and orm/hibernate-orm-6 :
* WithoutGenericEntity → TargetEntityWithoutGeneric : works OK with Hibernate 5 / 6
* WithGenericConcrete → TargetEntityWithGeneric : works OK with Hibernate 5 ; fails with
Hibernate 6
Unit test only tries to startup EntityManagerFactory ; no other operation.
If WithGenericConcrete / TargetEntityWithGeneric is removed from entities : OK
If @OrderColumn is removed on generic collection : OK
(
https://hibernate.atlassian.net/browse/HHH-16641#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16641#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:9dd72a2 )