You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: hibernate-core/src/test/java/org/hibernate/orm/test/mapping/manytoone/ManyToOneWithAnyAndSecondaryTable.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,13 @@
38
38
*/
39
39
@Jpa(
40
40
annotatedClasses = {
41
-
ManyToOneWithAnyAndSameEntityTest.Actor.class,
42
-
ManyToOneWithAnyAndSameEntityTest.Contact.class
41
+
ManyToOneWithAnyAndSecondaryTable.Actor.class,
42
+
ManyToOneWithAnyAndSecondaryTable.Contact.class
43
43
},
44
44
integrationSettings = @Setting(name = JdbcSettings.SHOW_SQL, value = "true")
0 commit comments