From b986ef1ea822d95b25c1e2fcbe267442fff998a6 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 14 Nov 2019 21:22:04 +0000 Subject: [PATCH] HHH-13725 - Implement ManyToOne associations --- .../org/hibernate/persister/entity/AbstractEntityPersister.java | 2 +- .../sql/exec/manytoone/EntityWithManyToOneJoinTableTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index d1af307d6b..4fa08de124 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -5411,7 +5411,7 @@ public abstract class AbstractEntityPersister @Override public Object getIdentifier(Object entity, SharedSessionContractImplementor session) { - return (Serializable) identifierMapping.getPropertyAccess().getGetter().get( entity ); + return identifierMapping.getPropertyAccess().getGetter().get( entity ); } @Override diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/sql/exec/manytoone/EntityWithManyToOneJoinTableTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/sql/exec/manytoone/EntityWithManyToOneJoinTableTest.java index dda4b30462..442b6f2685 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/sql/exec/manytoone/EntityWithManyToOneJoinTableTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/sql/exec/manytoone/EntityWithManyToOneJoinTableTest.java @@ -47,7 +47,7 @@ public class EntityWithManyToOneJoinTableTest { // } @Test - @FailureExpected +// @FailureExpected public void testSave(SessionFactoryScope scope) { EntityWithManyToOneJoinTable entity = new EntityWithManyToOneJoinTable( 1, "first", Integer.MAX_VALUE );