摘要: 继承映射有3种情况: 1.单表继承:每颗继承树使用一个表 table per class hierarchy 2.具体表继承:每个子类一个表 table per subclass 3.类表继承:每个具体类一个表 table per concrete class 有部分限制, 以下,单表继承 Anim 阅读全文
posted @ 2018-01-25 14:52 错莫难瞒 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Role类: package com.cnblogs.hibernate_first; import java.util.Set; public class Role { private int id; private String name; private Set users; public S 阅读全文
posted @ 2018-01-25 10:36 错莫难瞒 阅读(128) 评论(0) 推荐(0) 编辑