Skip to content

Instantly share code, notes, and snippets.

@mgurevin
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save mgurevin/1fc723e885b676ef0465 to your computer and use it in GitHub Desktop.

Select an option

Save mgurevin/1fc723e885b676ef0465 to your computer and use it in GitHub Desktop.
@Repository
public interface FooRepository<Foo> extends JpaRepository<Foo, Long>, JpaSpecificationExecutor<Foo> {
// findByXXX
@EntityGraph("prefetchViewItems")
public Page<Foo> findBySpecification(Specification<Foo> spec, Pageable pageable); // error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment