Skip to content

Commit

Permalink
HHH-17377 - Migrate to JPA 3.2
Browse files Browse the repository at this point in the history
https://hibernate.atlassian.net/browse/HHH-17377

Now on to 73 test compile errors :)
  • Loading branch information
sebersole committed Mar 28, 2024
1 parent c54da51 commit 83d29e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -554,12 +554,12 @@ public <T> List<EntityGraph<? super T>> getEntityGraphs(Class<T> entityClass) {

@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
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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);
Expand Down
Expand Up @@ -773,7 +773,7 @@ public MockJpaMetamodelImpl() {
}

@Override
public <X> EntityDomainType<X> entity(String entityName) {
public EntityDomainType<?> entity(String entityName) {
if ( isEntityDefined(entityName) ) {
return new MockEntityDomainType<>(entityName);
}
Expand Down

0 comments on commit 83d29e2

Please sign in to comment.