Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 8th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. public interface EntityRepository extends EntityRepositoryCustom, CrudRepository<Entity, String> {
  2. }
  3.    
  4. public interface EntityRepositoryCustom {
  5.     public Page<Entity> findEntitisOnCondition(Entity t, Pageable pageable);
  6. }
  7.    
  8. public class EntityRepositoryCustomImpl<Entity> extends SelfDefinedRepositoryImpl<Entity> {
  9.     @Override
  10.     protected String getSOmething() {
  11.         ...
  12.     }
  13. }
  14.    
  15. public interface SelfDefinedRepository<T, ID extends Serializable>  extends CrudRepository<T, ID> {
  16.     Page<T> findEntitisOnCondition(T t, Pageable pageable);
  17. }
  18.    
  19. public abstract class SelfDefinedRepositoryImpl<T, ID extends Serializable> implements SelfDefinedRepository<T, Serializable>{
  20.  
  21.     public Page<T> findEventsOnCondition(T t, Pageable pageable) {
  22.         ...
  23.         getSomething();
  24.         ...
  25.     }
  26.  
  27.     protected abstract String getSomething();
  28.  
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top