Initial working support for selecting a "query root" - i.e.

This commit is contained in:
Andrea Boriero 2019-09-13 14:25:41 +01:00
parent 23c3c8949e
commit c27c53f619
2 changed files with 2 additions and 3 deletions

View File

@ -5328,12 +5328,12 @@ public abstract class AbstractEntityPersister
@Override
public Serializable getIdentifier(Object entity, SharedSessionContractImplementor session) {
return (Serializable) getIdentifierMapping().getPropertyAccess().getGetter().get( entity );
return (Serializable) identifierMapping.getPropertyAccess().getGetter().get( entity );
}
@Override
public void setIdentifier(Object entity, Serializable id, SharedSessionContractImplementor session) {
getIdentifierMapping().getPropertyAccess().getSetter().set( entity, id, getFactory() );
identifierMapping.getPropertyAccess().getSetter().set( entity, id, factory );
}
@Override

View File

@ -103,7 +103,6 @@ public class SmokeTests {
}
@Test
@FailureExpected( reason = "Support for entity-values DomainResults not yet implemented")
public void testSelectEntityHqlExecution(SessionFactoryScope scope) {
scope.inTransaction(
session -> {