@Override public boolean deleteById(Long id) { LinkRecently d = this.findById(id); if (d != null) { d.setModifyDate(new Date()); this.update(d); } return true; }
public void save(List<LinkRecently> entitys) throws Exception { for (LinkRecently entity : entitys) { entity.setModifyDate(new Date()); this.save(entity); } }