这两种方法有什么区别吗?
public Long saveModel(Model model) {
model.setUpdated(new Date());
Long id = dao.save(model);
return id;
}
和
public Long saveModel(Model model) {
Model m = model;
m.setUpdated(new Date());
Long id = dao.save(m);
return id;
}