Package io.ebean

Class BeanFinder<I,​T>

  • Type Parameters:
    I - The ID type
    T - The Bean type
    Direct Known Subclasses:
    BeanRepository

    public abstract class BeanFinder<I,​T>
    extends Object
    Provides finder functionality for use with "Dependency Injection style" use of Ebean.

    Note that typically users would extend BeanRepository rather than BeanFinder.

    
    
     public class CustomerFinder extends BeanFinder<Long,Customer> {
    
       @Inject
       public CustomerFinder(Database database) {
         super(Customer.class, database);
       }
    
       // ... add customer specific finders
     }