View Javadoc
1   package org.woehlke.jakartaee.petclinic.application.framework.db;
2   
3   import org.woehlke.jakartaee.petclinic.application.framework.EntityBase;
4   
5   import java.io.Serializable;
6   import java.util.List;
7   
8   /**
9    * @param <T>
10   */
11  public interface CrudService<T extends EntityBase> extends Serializable {
12  
13      long serialVersionUID = 8240918516324226703L;
14  
15      List<T> getAll();
16  
17      T findById(long id);
18  
19      T addNew(T entity);
20  
21      T update(T entity);
22  
23      void delete(long id);
24  
25  }