HHH-17377 - Migrate to JPA 3.2
https://hibernate.atlassian.net/browse/HHH-17377 Now on to 73 test compile errors :)
This commit is contained in:
parent
be0fc9ee6a
commit
3495461a9c
|
@ -554,12 +554,12 @@ public class SessionLazyDelegator implements Session {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <C> void runWithConnection(ConnectionConsumer<C> action) {
|
public <C> void runWithConnection(ConnectionConsumer<C> action) {
|
||||||
|
this.lazySession.get().runWithConnection( action );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <C, T> T callWithConnection(ConnectionFunction<C, T> function) {
|
public <C, T> T callWithConnection(ConnectionFunction<C, T> function) {
|
||||||
return null;
|
return this.lazySession.get().callWithConnection( function );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -164,7 +164,7 @@ public interface QueryProducer {
|
||||||
*
|
*
|
||||||
* @see jakarta.persistence.EntityManager#createNativeQuery(String,Class)
|
* @see jakarta.persistence.EntityManager#createNativeQuery(String,Class)
|
||||||
*/
|
*/
|
||||||
<R> NativeQuery<R> createNativeQuery(String sqlString, Class<R> resultClass);
|
NativeQuery<?> createNativeQuery(String sqlString, Class<?> resultClass);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a {@link NativeQuery} instance for the given native SQL query
|
* Create a {@link NativeQuery} instance for the given native SQL query
|
||||||
|
|
|
@ -48,7 +48,7 @@ public interface QueryProducerImplementor extends QueryProducer {
|
||||||
NativeQueryImplementor createNativeQuery(String sqlString);
|
NativeQueryImplementor createNativeQuery(String sqlString);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
<R> NativeQueryImplementor<R> createNativeQuery(String sqlString, Class<R> resultClass);
|
NativeQueryImplementor<?> createNativeQuery(String sqlString, Class<?> resultClass);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
<R> NativeQueryImplementor<R> createNativeQuery(String sqlString, Class<R> resultClass, String tableAlias);
|
<R> NativeQueryImplementor<R> createNativeQuery(String sqlString, Class<R> resultClass, String tableAlias);
|
||||||
|
|
|
@ -794,7 +794,7 @@ public abstract class MockSessionFactory
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <X> EntityDomainType<X> entity(String entityName) {
|
public EntityDomainType<?> entity(String entityName) {
|
||||||
if ( isEntityDefined(entityName) ) {
|
if ( isEntityDefined(entityName) ) {
|
||||||
return new MockEntityDomainType<>(entityName);
|
return new MockEntityDomainType<>(entityName);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue