Package org.springframework.data.jpa.repository.custom

Examples of org.springframework.data.jpa.repository.custom.CustomGenericJpaRepositoryFactory


  }

  @Test(expected = UnsupportedOperationException.class)
  public void createsProxyWithCustomBaseClass() {

    JpaRepositoryFactory factory = new CustomGenericJpaRepositoryFactory(entityManager);
    factory.setQueryLookupStrategyKey(Key.CREATE_IF_NOT_FOUND);
    UserCustomExtendedRepository repository = factory.getRepository(UserCustomExtendedRepository.class);

    repository.customMethod(1);
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.jpa.repository.custom.CustomGenericJpaRepositoryFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.