Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 455699561627d6f004f7689a5af0cca0c2419b22
https://github.com/hibernate/hibernate-orm/commit/455699561627d6f004f7689...
Author: Vincent Bouthinon <v-bouthinon(a)efluid.fr>
Date: 2024-12-27 (Fri, 27 Dec 2024)
Changed paths:
A
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/manytoone/ManyToOneWithAnyAndSameEntityTest.java
Log Message:
-----------
HHH-18750 : @OneToMany with @Any mapped in secondary table KO (ClassCastException)
He mistakenly assumes, at first glance, that the mappedBy attribut is not a @ManyToOne or
@Any because the mappedBy attribut is mapped in a secondary table and therefore has a
join.
The problem appears later during a cast where the instance of type
DiscriminatedAssociationAttributeMapping is cast to PluralAttributeMapping.
https://hibernate.atlassian.net/browse/HHH-18750
Commit: 82a76ac9aa74fadc6c8ddc9f4b4949309ee5eca3
https://github.com/hibernate/hibernate-orm/commit/82a76ac9aa74fadc6c8ddc9...
Author: Vincent Bouthinon <vbouthinon(a)free.fr>
Date: 2024-12-27 (Fri, 27 Dec 2024)
Changed paths:
R
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/manytoone/ManyToOneWithAnyAndSameEntityTest.java
A
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/manytoone/ManyToOneWithAnyAndSecondaryTable.java
Log Message:
-----------
HHH-18750 : @OneToMany with @Any mapped in secondary table KO (ClassCastException)
He mistakenly assumes, at first glance, that the mappedBy attribut is not a @ManyToOne or
@Any because the mappedBy attribut is mapped in a secondary table and therefore has a
join.
The problem appears later during a cast where the instance of type
DiscriminatedAssociationAttributeMapping is cast to PluralAttributeMapping.
https://hibernate.atlassian.net/browse/HHH-18750
Commit: eeaf27e97f14baa28718f5142d6b71b2adf2aa89
https://github.com/hibernate/hibernate-orm/commit/eeaf27e97f14baa28718f51...
Author: Vincent Bouthinon <v-bouthinon(a)efluid.fr>
Date: 2024-12-27 (Fri, 27 Dec 2024)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/ManyToManyCollectionPart.java
Log Message:
-----------
HHH-18750 : @OneToMany with @Any mapped in secondary table KO (ClassCastException)
Proposed solution: Follow the same approach as @ManyToOne for the second pass.
For your information : @OneToMany with @ManyToOne that uses a @SecondaryTable works
perfectly.
https://hibernate.atlassian.net/browse/HHH-18750
Compare:
https://github.com/hibernate/hibernate-orm/compare/475e780da112...eeaf27e...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications