DATAJDBC-238 - JdbcRepositoryFactory.getEntityInformation never returns null.
Instead it throws an exception as this is required by the interface it implements.
This commit is contained in:
@@ -92,11 +92,7 @@ public class JdbcRepositoryFactory extends RepositoryFactorySupport {
|
||||
@Override
|
||||
public <T, ID> EntityInformation<T, ID> getEntityInformation(Class<T> aClass) {
|
||||
|
||||
RelationalPersistentEntity<?> entity = context.getPersistentEntity(aClass);
|
||||
|
||||
if (entity == null) {
|
||||
return null;
|
||||
}
|
||||
RelationalPersistentEntity<?> entity = context.getRequiredPersistentEntity(aClass);
|
||||
|
||||
return (EntityInformation<T, ID>) new PersistentEntityInformation<>(entity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user