Adapt to latest changes in repository factory base classes.

This commit is contained in:
Oliver Gierke
2010-12-29 13:36:05 +01:00
parent f2d92cec55
commit b50b4f573b
2 changed files with 11 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ public class CustomGenericJpaRepositoryFactory extends JpaRepositoryFactory {
*/
@Override
protected <T, ID extends Serializable> RepositorySupport<T, ID> getTargetRepository(
Class<T> domainClass, EntityManager em) {
Class<T> domainClass, Class<?> repositoryInterface, EntityManager em) {
return new CustomGenericJpaRepository<T, ID>(domainClass, em);
}
@@ -65,7 +65,8 @@ public class CustomGenericJpaRepositoryFactory extends JpaRepositoryFactory {
*/
@Override
@SuppressWarnings("rawtypes")
protected Class<? extends RepositorySupport> getRepositoryClass() {
protected Class<? extends RepositorySupport> getRepositoryClass(
Class<?> repositoryInterface) {
return CustomGenericJpaRepository.class;
}