DATACMNS-1345 - RepositoryFactoryBeanSupport now properly reports missing MappingContext.

This commit is contained in:
Oliver Gierke
2018-06-21 08:55:45 +02:00
parent d570f4d79e
commit 6951d8b711
2 changed files with 19 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ public abstract class RepositoryFactoryBeanSupport<T extends Repository<S, ID>,
private Optional<Object> customImplementation = Optional.empty();
private Optional<RepositoryFragments> repositoryFragments = Optional.empty();
private NamedQueries namedQueries;
private Optional<MappingContext<?, ?>> mappingContext;
private Optional<MappingContext<?, ?>> mappingContext = Optional.empty();
private ClassLoader classLoader;
private BeanFactory beanFactory;
private boolean lazyInit = false;
@@ -82,7 +82,6 @@ public abstract class RepositoryFactoryBeanSupport<T extends Repository<S, ID>,
*
* @param repositoryInterface must not be {@literal null}.
*/
@SuppressWarnings("null")
protected RepositoryFactoryBeanSupport(Class<? extends T> repositoryInterface) {
Assert.notNull(repositoryInterface, "Repository interface must not be null!");