示例#1
0
 @Override
 public void save(People people) {
   if (people.getPeopleId() == null) {
     dao.save(people);
   } else {
     dao.merge(people);
   }
 }
示例#2
0
 @Override
 public Collection<People> listar() {
   return dao.list(People.class);
 }
示例#3
0
 @Override
 public People findById(Integer id) {
   return dao.findById(People.class, id);
 }
示例#4
0
 @Override
 public void delete(People people) {
   dao.delete(people);
 }