01 2018 档案

摘要:FiscalYearPeriod类: package com.cnblogs.hibernate_first; import java.util.Date; public class FiscalYearPeriod { private FiscalYearPeriodPK fiscalYearPe 阅读全文
posted @ 2018-01-29 16:14 错莫难瞒 阅读(375) 评论(0) 推荐(0)
摘要:继承映射有3种情况: 1.单表继承:每颗继承树使用一个表 table per class hierarchy 2.具体表继承:每个子类一个表 table per subclass 3.类表继承:每个具体类一个表 table per concrete class 有部分限制, 以下,类表继承: 1.A 阅读全文
posted @ 2018-01-26 16:51 错莫难瞒 阅读(297) 评论(0) 推荐(0)
摘要:继承映射有3种情况: 1.单表继承:每颗继承树使用一个表 table per class hierarchy 2.具体表继承:每个子类一个表 table per subclass 3.类表继承:每个具体类一个表 table per concrete class 有部分限制, 以下,具体表继承: 1. 阅读全文
posted @ 2018-01-26 16:46 错莫难瞒 阅读(185) 评论(0) 推荐(0)
摘要:继承映射有3种情况: 1.单表继承:每颗继承树使用一个表 table per class hierarchy 2.具体表继承:每个子类一个表 table per subclass 3.类表继承:每个具体类一个表 table per concrete class 有部分限制, 以下,单表继承 Anim 阅读全文
posted @ 2018-01-25 14:52 错莫难瞒 阅读(185) 评论(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 错莫难瞒 阅读(134) 评论(0) 推荐(0)
摘要:Role类 User类 package com.cnblogs.hibernate_first; import java.util.Set; public class User { private int id; private String name; private Set roles; pub 阅读全文
posted @ 2018-01-23 10:22 错莫难瞒 阅读(127) 评论(0) 推荐(0)