HHH-15045 + HHH-15235 onFlushDirty() invoked on parent entity in a @OneToOne relationship when no table columns are changed - PropertyAccessException on merging Bidirectional OneToOne with EmbeddedId - Reverted HHH-14216

This commit is contained in:
Andrea Boriero 2022-09-23 11:21:08 +02:00
parent 249dfd0d12
commit a08716b67b
3 changed files with 1 additions and 3 deletions

View File

@ -142,7 +142,7 @@ public class OneToOneType extends EntityType {
@Override
public Object assemble(Serializable oid, SharedSessionContractImplementor session, Object owner) throws HibernateException {
//this should be a call to resolve(), not resolveIdentifier(),
//'cos it might be a property-ref, and we did not cache the
//because it might be a property-ref, and we did not cache the
//referenced value
return resolve( session.getContextEntityIdentifier(owner), session, owner );
}

View File

@ -48,7 +48,6 @@ public class EmbeddedIdTest {
foo.bar = bar;
bar.foo = foo;
session.merge( foo );
session.flush();
}
);
}

View File

@ -59,7 +59,6 @@ public class DirtyFlushTest {
user.profile = profile;
em.persist( profile );
em.flush();
} );
scope.inTransaction( em -> {