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:
Steve Ebersole 2023-11-01 19:54:34 -05:00
parent be0fc9ee6a
commit 3495461a9c
4 changed files with 5 additions and 5 deletions

View File

@ -554,12 +554,12 @@ public class SessionLazyDelegator implements Session {
@Override
public <C> void runWithConnection(ConnectionConsumer<C> action) {
this.lazySession.get().runWithConnection( action );
}
@Override
public <C, T> T callWithConnection(ConnectionFunction<C, T> function) {
return null;
return this.lazySession.get().callWithConnection( function );
}
@Override

View File

@ -164,7 +164,7 @@ public interface QueryProducer {
*
* @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

View File

@ -48,7 +48,7 @@ public interface QueryProducerImplementor extends QueryProducer {
NativeQueryImplementor createNativeQuery(String sqlString);
@Override
<R> NativeQueryImplementor<R> createNativeQuery(String sqlString, Class<R> resultClass);
NativeQueryImplementor<?> createNativeQuery(String sqlString, Class<?> resultClass);
@Override
<R> NativeQueryImplementor<R> createNativeQuery(String sqlString, Class<R> resultClass, String tableAlias);

View File

@ -794,7 +794,7 @@ public abstract class MockSessionFactory
}
@Override
public <X> EntityDomainType<X> entity(String entityName) {
public EntityDomainType<?> entity(String entityName) {
if ( isEntityDefined(entityName) ) {
return new MockEntityDomainType<>(entityName);
}