Skip to content

Commit a6b5f16

Browse files
committed
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
1 parent aadd725 commit a6b5f16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
*/
3939
@Jpa(
4040
annotatedClasses = {
41-
ManyToOneWithAnyAndSameEntityTest.Actor.class,
42-
ManyToOneWithAnyAndSameEntityTest.Contact.class
41+
ManyToOneWithAnyAndSecondaryTable.Actor.class,
42+
ManyToOneWithAnyAndSecondaryTable.Contact.class
4343
},
4444
integrationSettings = @Setting(name = JdbcSettings.SHOW_SQL, value = "true")
4545
)
4646
@JiraKey("HHH-18750")
47-
class ManyToOneWithAnyAndSameEntityTest {
47+
class ManyToOneWithAnyAndSecondaryTable {
4848

4949
@Test
5050
void testMappingManyToOneMappedByAnyPersistedInSecondaryTable(EntityManagerFactoryScope scope) {

0 commit comments

Comments
 (0)