您应该创建一个新对象:
Record abc =dao.findById(11);Record def = new Record(abc);dao.save(def)
public Record(){}public Record(Record rec){ this.field1 = rec.field1;}
欢迎分享,转载请注明来源:内存溢出
您应该创建一个新对象:
Record abc =dao.findById(11);Record def = new Record(abc);dao.save(def)
public Record(){}public Record(Record rec){ this.field1 = rec.field1;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)