update
1、用来更新detached对象,更新完成后转为persistent状态
2、更新transient对象会包需哦
3、更新自己设定的transient对象可以(数据库有对应记录)
4、更新部分更改的字段
a) xml设定property标签的update属性,annotation设定@COlumn得到updatable属性,不过这种方式很少用,因为不灵活
b) 使用xml中的dynamnic-update , JPA1.0 Annotation 没有对应的属性
update
1、用来更新detached对象,更新完成后转为persistent状态
2、更新transient对象会包需哦
3、更新自己设定的transient对象可以(数据库有对应记录)
4、更新部分更改的字段
a) xml设定property标签的update属性,annotation设定@COlumn得到updatable属性,不过这种方式很少用,因为不灵活
b) 使用xml中的dynamnic-update , JPA1.0 Annotation 没有对应的属性