Class EntityFinder


  • public class EntityFinder
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      EntityFinder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T,​ID>
      T
      findById​(org.springframework.data.repository.CrudRepository<T,​ID> repository, ID id, java.lang.String notFoundMessage)  
      <T> T findOne​(org.springframework.data.querydsl.QuerydslPredicateExecutor<T> predicateExecutor, com.querydsl.core.types.Predicate predicate, java.lang.String notFoundMessage)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntityFinder

        public EntityFinder()
    • Method Detail

      • findById

        public <T,​ID> T findById​(org.springframework.data.repository.CrudRepository<T,​ID> repository,
                                       ID id,
                                       java.lang.String notFoundMessage)
      • findOne

        public <T> T findOne​(org.springframework.data.querydsl.QuerydslPredicateExecutor<T> predicateExecutor,
                             com.querydsl.core.types.Predicate predicate,
                             java.lang.String notFoundMessage)