示例#1
0
 public void add(T t) {
   dao.save(t);
 }
示例#2
0
 public void update(T t) {
   dao.persist(t);
 }
示例#3
0
 public void remove(T t) {
   dao.delete(t);
 }
示例#4
0
 public void remove(PK id) {
   dao.delete(id);
 }
示例#5
0
 public T get(PK id) {
   return dao.get(id);
 }
示例#6
0
 public List<T> getAll() {
   return (List<T>) dao.getAll();
 }