HHH-15044 Revert HHH-14826 fix because the provided test was wrong
This commit is contained in:
parent
2ccfaef625
commit
25be071285
|
@ -215,14 +215,6 @@ public class OneToOneType extends EntityType {
|
|||
|
||||
@Override
|
||||
public Object assemble(Serializable oid, SharedSessionContractImplementor session, Object owner) throws HibernateException {
|
||||
|
||||
if ( oid == null ) {
|
||||
if ( uniqueKeyPropertyName != null ) {
|
||||
return resolve( session.getContextEntityIdentifier( owner ), session, owner );
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//the owner of the association is not the owner of the id
|
||||
Serializable id = ( Serializable ) getIdentifierType( session ).assemble( oid, session, null );
|
||||
|
||||
|
|
|
@ -54,6 +54,7 @@ public class OneToOneCacheEnableSelectingTest extends BaseCoreFunctionalTestCase
|
|||
Product product = s.find(Product.class, pid.get());
|
||||
ProductConfig config = new ProductConfig();
|
||||
config.setProduct(product);
|
||||
product.setConfig( config );
|
||||
s.persist(config);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue