2020年1月24日

hibernate, cascade

摘要: 1,one to one, 单向, 谁加注解才能关联(dubug有时候背lazy影响 副表角度: 查:能查,主表不加注解 插入:不加级联插入有异常,只有在副表加cascade = CascadeType.Persist,所以只能说明加了oneToOne只能级联插入, 如果只是查出来再插入,或者知道了 阅读全文

posted @ 2020-01-24 16:26 Kooing 阅读(138) 评论(0) 推荐(0) 编辑

导航