mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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:
parent
249dfd0d12
commit
a08716b67b
@ -142,7 +142,7 @@ public Serializable disassemble(Object value, SharedSessionContractImplementor s
|
||||
@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 );
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ public void testMerge(SessionFactoryScope scope) {
|
||||
foo.bar = bar;
|
||||
bar.foo = foo;
|
||||
session.merge( foo );
|
||||
session.flush();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
@ -59,7 +59,6 @@ public void testDirtyFlushNotHappened(EntityManagerFactoryScope scope) {
|
||||
user.profile = profile;
|
||||
|
||||
em.persist( profile );
|
||||
em.flush();
|
||||
} );
|
||||
|
||||
scope.inTransaction( em -> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user