├── src
└── main
│ └── java
│ └── com
│ └── woniuxy
│ ├── e_set
│ ├── 表结构.png
│ ├── AppTest.java
│ ├── HibernateUtils.java
│ ├── hibernate.cfg.xml
│ ├── User.hbm.xml
│ └── User.java
│ ├── f_list
│ ├── 表结构.png
│ ├── AppTest.java
│ ├── HibernateUtils.java
│ ├── hibernate.cfg.xml
│ ├── User.hbm.xml
│ └── User.java
│ ├── g_map
│ ├── 表结构.png
│ ├── AppTest.java
│ ├── HibernateUtils.java
│ ├── User.hbm.xml
│ ├── hibernate.cfg.xml
│ └── User.java
│ ├── h_sort
│ ├── 表结构.png
│ ├── AppTest.java
│ ├── HibernateUtils.java
│ ├── hibernate.cfg.xml
│ ├── User.java
│ └── User.hbm.xml
│ ├── a_hello
│ ├── AppTest.java
│ ├── readme.txt
│ ├── User.hbm.xml
│ ├── hibernate.cfg.xml
│ └── User.java
│ ├── b_utils
│ ├── AppTest.java
│ ├── HibernateUtils.java
│ ├── User.hbm.xml
│ ├── hibernate.cfg.xml
│ └── User.java
│ ├── c_hbm
│ ├── AppTest.java
│ ├── Car.java
│ ├── HibernateUtils.java
│ ├── Car.hbm.xml
│ ├── User.java
│ ├── hibernate.cfg.xml
│ └── User.hbm.xml
│ ├── p_lazy
│ ├── AppTest.java
│ ├── Emp.hbm.xml
│ ├── HibernateUtils.java
│ ├── Dept.java
│ ├── Dept.hbm.xml
│ ├── hibernate.cfg.xml
│ └── Emp.java
│ ├── r_hql
│ ├── AppTest.java
│ ├── Dept.hbm.xml
│ ├── Emp.hbm.xml
│ ├── HibernateUtils.java
│ ├── Dept.java
│ ├── hibernate.cfg.xml
│ └── Emp.java
│ ├── z_test
│ └── AppTest.java
│ ├── d_hbm2ddl
│ ├── AppTest.java
│ ├── User.hbm.xml
│ ├── HibernateUtils.java
│ ├── User.java
│ └── hibernate.cfg.xml
│ ├── i_one2many
│ ├── 一对多表结构.png
│ ├── AppTest.java
│ ├── AppTest2.java
│ ├── AppTest3.java
│ ├── HibernateUtils.java
│ ├── Dept.java
│ ├── Emp.hbm.xml
│ ├── hibernate.cfg.xml
│ ├── Emp.java
│ └── Dept.hbm.xml
│ ├── j_many2many
│ ├── 多对多表结构.png
│ ├── AppTest.java
│ ├── AppTest2.java
│ ├── HibernateUtils.java
│ ├── Student.hbm.xml
│ ├── Student.java
│ ├── Teacher.java
│ ├── hibernate.cfg.xml
│ └── Teacher.hbm.xml
│ ├── k_one2one
│ ├── AppTest.java
│ ├── 基于外键一对一表结构.png
│ ├── HibernateUtils.java
│ ├── Husband.java
│ ├── Wife.java
│ ├── Wife.hbm.xml
│ ├── Husband.hbm.xml
│ └── hibernate.cfg.xml
│ ├── l_one2one
│ ├── AppTest.java
│ ├── 基于主键的一对一表结构.png
│ ├── Husband.hbm.xml
│ ├── HibernateUtils.java
│ ├── Husband.java
│ ├── Wife.java
│ ├── Wife.hbm.xml
│ └── hibernate.cfg.xml
│ ├── m_sqltime
│ ├── AppTest.java
│ ├── HibernateUtils.java
│ ├── User.hbm.xml
│ ├── User.java
│ └── hibernate.cfg.xml
│ ├── n_object3status
│ ├── AppTest.java
│ ├── 如何甄别对象处于哪个状态.png
│ ├── HibernateUtils.java
│ ├── User.hbm.xml
│ ├── User.java
│ └── hibernate.cfg.xml
│ ├── o_onelevelcache
│ ├── AppTest.java
│ ├── hibernate一级缓存模型图png.png
│ ├── HibernateUtils.java
│ ├── User.hbm.xml
│ ├── User.java
│ └── hibernate.cfg.xml
│ └── q_twolevelcache
│ ├── AppTest.java
│ ├── hibernate二级缓存模型图.png
│ ├── User.hbm.xml
│ ├── HibernateUtils.java
│ ├── ehcache.xml
│ ├── User.java
│ └── hibernate.cfg.xml
├── target
└── classes
│ ├── com
│ └── woniuxy
│ │ ├── e_set
│ │ ├── 表结构.png
│ │ ├── hibernate.cfg.xml
│ │ └── User.hbm.xml
│ │ ├── f_list
│ │ ├── 表结构.png
│ │ ├── hibernate.cfg.xml
│ │ └── User.hbm.xml
│ │ ├── g_map
│ │ ├── 表结构.png
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── h_sort
│ │ ├── 表结构.png
│ │ ├── hibernate.cfg.xml
│ │ └── User.hbm.xml
│ │ ├── a_hello
│ │ ├── readme.txt
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── i_one2many
│ │ ├── 一对多表结构.png
│ │ ├── Emp.hbm.xml
│ │ ├── hibernate.cfg.xml
│ │ └── Dept.hbm.xml
│ │ ├── j_many2many
│ │ ├── 多对多表结构.png
│ │ ├── Student.hbm.xml
│ │ ├── hibernate.cfg.xml
│ │ └── Teacher.hbm.xml
│ │ ├── k_one2one
│ │ ├── 基于外键一对一表结构.png
│ │ ├── Wife.hbm.xml
│ │ ├── Husband.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── l_one2one
│ │ ├── 基于主键的一对一表结构.png
│ │ ├── Husband.hbm.xml
│ │ ├── Wife.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── n_object3status
│ │ ├── 如何甄别对象处于哪个状态.png
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── q_twolevelcache
│ │ ├── hibernate二级缓存模型图.png
│ │ ├── User.hbm.xml
│ │ ├── ehcache.xml
│ │ └── hibernate.cfg.xml
│ │ ├── o_onelevelcache
│ │ ├── hibernate一级缓存模型图png.png
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── d_hbm2ddl
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── p_lazy
│ │ ├── Emp.hbm.xml
│ │ ├── Dept.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── r_hql
│ │ ├── Dept.hbm.xml
│ │ ├── Emp.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ ├── c_hbm
│ │ ├── Car.hbm.xml
│ │ ├── hibernate.cfg.xml
│ │ └── User.hbm.xml
│ │ ├── b_utils
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ │ └── m_sqltime
│ │ ├── User.hbm.xml
│ │ └── hibernate.cfg.xml
│ └── META-INF
│ └── maven
│ └── com.woniuxy
│ └── hibernate
│ ├── pom.properties
│ └── pom.xml
└── pom.xml
/src/main/java/com/woniuxy/e_set/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/e_set/表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/f_list/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/f_list/表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/g_map/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/g_map/表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/h_sort/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/h_sort/表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/e_set/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/e_set/表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/f_list/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/f_list/表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/g_map/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/g_map/表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/h_sort/表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/h_sort/表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/a_hello/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/a_hello/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/a_hello/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/a_hello/readme.txt
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/b_utils/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/b_utils/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/c_hbm/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/e_set/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/e_set/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/f_list/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/f_list/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/g_map/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/g_map/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/h_sort/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/h_sort/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/p_lazy/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/r_hql/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/z_test/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/z_test/AppTest.java
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/a_hello/readme.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/a_hello/readme.txt
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/d_hbm2ddl/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/d_hbm2ddl/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/一对多表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/i_one2many/一对多表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/多对多表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/j_many2many/多对多表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/k_one2one/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/l_one2one/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/m_sqltime/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/m_sqltime/AppTest.java
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/i_one2many/一对多表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/i_one2many/一对多表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/i_one2many/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/AppTest2.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/i_one2many/AppTest2.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/AppTest3.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/i_one2many/AppTest3.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/j_many2many/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/AppTest2.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/j_many2many/AppTest2.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/基于外键一对一表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/k_one2one/基于外键一对一表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/基于主键的一对一表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/l_one2one/基于主键的一对一表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/j_many2many/多对多表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/j_many2many/多对多表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/k_one2one/基于外键一对一表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/k_one2one/基于外键一对一表结构.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/l_one2one/基于主键的一对一表结构.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/l_one2one/基于主键的一对一表结构.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/n_object3status/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/n_object3status/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/o_onelevelcache/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/o_onelevelcache/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/AppTest.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/q_twolevelcache/AppTest.java
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/n_object3status/如何甄别对象处于哪个状态.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/n_object3status/如何甄别对象处于哪个状态.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/n_object3status/如何甄别对象处于哪个状态.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/n_object3status/如何甄别对象处于哪个状态.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/hibernate二级缓存模型图.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/q_twolevelcache/hibernate二级缓存模型图.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/q_twolevelcache/hibernate二级缓存模型图.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/q_twolevelcache/hibernate二级缓存模型图.png
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/o_onelevelcache/hibernate一级缓存模型图png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/src/main/java/com/woniuxy/o_onelevelcache/hibernate一级缓存模型图png.png
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/o_onelevelcache/hibernate一级缓存模型图png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/gapper0208/hibernate/HEAD/target/classes/com/woniuxy/o_onelevelcache/hibernate一级缓存模型图png.png
--------------------------------------------------------------------------------
/target/classes/META-INF/maven/com.woniuxy/hibernate/pom.properties:
--------------------------------------------------------------------------------
1 | #Generated by Maven Integration for Eclipse
2 | #Thu Jun 13 10:25:43 CST 2019
3 | version=0.0.1-SNAPSHOT
4 | groupId=com.woniuxy
5 | m2e.projectName=hibernate
6 | m2e.projectLocation=D\:\\spring-tool-suite-4\\sts-4.2.2.RELEASE\\workspace\\hibernate
7 | artifactId=hibernate
8 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/Husband.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/l_one2one/Husband.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/d_hbm2ddl/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/d_hbm2ddl/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/Emp.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/p_lazy/Emp.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/q_twolevelcache/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/Car.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.c_hbm;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Car implements Serializable {
6 |
7 | private String cid;
8 | private String brand;
9 | public String getCid() {
10 | return cid;
11 | }
12 | public void setCid(String cid) {
13 | this.cid = cid;
14 | }
15 | public String getBrand() {
16 | return brand;
17 | }
18 | public void setBrand(String brand) {
19 | this.brand = brand;
20 | }
21 | @Override
22 | public String toString() {
23 | return "Car [cid=" + cid + ", brand=" + brand + "]";
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/Dept.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/r_hql/Dept.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/Emp.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/r_hql/Emp.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/a_hello/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.c_hbm;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/c_hbm/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/e_set/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.e_set;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/e_set/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/f_list/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.f_list;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/f_list/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/g_map/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.g_map;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/g_map/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/h_sort/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.h_sort;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/h_sort/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.p_lazy;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/p_lazy/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.r_hql;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/r_hql/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/a_hello/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/b_utils/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.b_utils;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/b_utils/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/d_hbm2ddl/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.d_hbm2ddl;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/d_hbm2ddl/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.k_one2one;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/k_one2one/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.l_one2one;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/l_one2one/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/m_sqltime/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.m_sqltime;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/m_sqltime/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.i_one2many;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/i_one2many/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.j_many2many;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/j_many2many/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/Car.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/n_object3status/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.n_object3status;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/n_object3status/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/o_onelevelcache/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.o_onelevelcache;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/o_onelevelcache/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/HibernateUtils.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.q_twolevelcache;
2 |
3 | import org.hibernate.Session;
4 | import org.hibernate.SessionFactory;
5 | import org.hibernate.cfg.Configuration;
6 |
7 | public class HibernateUtils {
8 | private static SessionFactory sf = null;
9 |
10 | static {
11 | Configuration cfg = new Configuration();
12 | cfg.configure("com/woniuxy/q_twolevelcache/hibernate.cfg.xml");
13 | sf = cfg.buildSessionFactory();
14 | }
15 |
16 | public static Session openSession() {
17 | return sf.openSession();
18 | }
19 |
20 | public static SessionFactory getSessionFactory() {
21 | return sf;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/c_hbm/Car.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/Student.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/ehcache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
19 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/j_many2many/Student.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/q_twolevelcache/ehcache.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
19 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/Husband.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.k_one2one;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Husband implements Serializable {
6 | private Integer hid;
7 | private String hname;
8 | private Wife wife;
9 | public Integer getHid() {
10 | return hid;
11 | }
12 | public void setHid(Integer hid) {
13 | this.hid = hid;
14 | }
15 | public String getHname() {
16 | return hname;
17 | }
18 | public void setHname(String hname) {
19 | this.hname = hname;
20 | }
21 | public Wife getWife() {
22 | return wife;
23 | }
24 | public void setWife(Wife wife) {
25 | this.wife = wife;
26 | }
27 | @Override
28 | public String toString() {
29 | return "Husband [hid=" + hid + ", hname=" + hname + "]";
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/Husband.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.l_one2one;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Husband implements Serializable {
6 | private Integer hid;
7 | private String hname;
8 | private Wife wife;
9 | public Integer getHid() {
10 | return hid;
11 | }
12 | public void setHid(Integer hid) {
13 | this.hid = hid;
14 | }
15 | public String getHname() {
16 | return hname;
17 | }
18 | public void setHname(String hname) {
19 | this.hname = hname;
20 | }
21 | public Wife getWife() {
22 | return wife;
23 | }
24 | public void setWife(Wife wife) {
25 | this.wife = wife;
26 | }
27 | @Override
28 | public String toString() {
29 | return "Husband [hid=" + hid + ", hname=" + hname + "]";
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/Wife.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.k_one2one;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Wife implements Serializable {
6 | private Integer wid;
7 | private String wname;
8 | private Husband husband;
9 | public Integer getWid() {
10 | return wid;
11 | }
12 | public void setWid(Integer wid) {
13 | this.wid = wid;
14 | }
15 | public String getWname() {
16 | return wname;
17 | }
18 | public void setWname(String wname) {
19 | this.wname = wname;
20 | }
21 | public Husband getHusband() {
22 | return husband;
23 | }
24 | public void setHusband(Husband husband) {
25 | this.husband = husband;
26 | }
27 | @Override
28 | public String toString() {
29 | return "Wife [wid=" + wid + ", wname=" + wname + "]";
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/Wife.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.l_one2one;
2 |
3 | import java.io.Serializable;
4 |
5 | public class Wife implements Serializable {
6 | private Integer wid;
7 | private String wname;
8 | private Husband husband;
9 | public Integer getWid() {
10 | return wid;
11 | }
12 | public void setWid(Integer wid) {
13 | this.wid = wid;
14 | }
15 | public String getWname() {
16 | return wname;
17 | }
18 | public void setWname(String wname) {
19 | this.wname = wname;
20 | }
21 | public Husband getHusband() {
22 | return husband;
23 | }
24 | public void setHusband(Husband husband) {
25 | this.husband = husband;
26 | }
27 | @Override
28 | public String toString() {
29 | return "Wife [wid=" + wid + ", wname=" + wname + "]";
30 | }
31 | }
32 |
33 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/Wife.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/k_one2one/Wife.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/Dept.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.p_lazy;
2 |
3 | import java.io.Serializable;
4 | import java.util.HashSet;
5 | import java.util.Set;
6 |
7 | public class Dept implements Serializable {
8 | private Integer did;
9 | private String dname;
10 | private Set emps = new HashSet<>();
11 | public Integer getDid() {
12 | return did;
13 | }
14 | public void setDid(Integer did) {
15 | this.did = did;
16 | }
17 | public String getDname() {
18 | return dname;
19 | }
20 | public void setDname(String dname) {
21 | this.dname = dname;
22 | }
23 | public Set getEmps() {
24 | return emps;
25 | }
26 | public void setEmps(Set emps) {
27 | this.emps = emps;
28 | }
29 | @Override
30 | public String toString() {
31 | return "Dept [did=" + did + ", dname=" + dname + "]";
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/Dept.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.i_one2many;
2 |
3 | import java.io.Serializable;
4 | import java.util.HashSet;
5 | import java.util.Set;
6 |
7 | public class Dept implements Serializable {
8 | private Integer did;
9 | private String dname;
10 | private Set emps = new HashSet<>();
11 | public Integer getDid() {
12 | return did;
13 | }
14 | public void setDid(Integer did) {
15 | this.did = did;
16 | }
17 | public String getDname() {
18 | return dname;
19 | }
20 | public void setDname(String dname) {
21 | this.dname = dname;
22 | }
23 | public Set getEmps() {
24 | return emps;
25 | }
26 | public void setEmps(Set emps) {
27 | this.emps = emps;
28 | }
29 | @Override
30 | public String toString() {
31 | return "Dept [did=" + did + ", dname=" + dname + "]";
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/Dept.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.r_hql;
2 |
3 | import java.io.Serializable;
4 | import java.util.HashSet;
5 | import java.util.Set;
6 |
7 | public final class Dept implements Serializable {
8 | private Integer did;
9 | private String dname;
10 | private Set emps = new HashSet<>();
11 |
12 |
13 |
14 | public Integer getDid() {
15 | return did;
16 | }
17 | public void setDid(Integer did) {
18 | this.did = did;
19 | }
20 | public String getDname() {
21 | return dname;
22 | }
23 | public void setDname(String dname) {
24 | this.dname = dname;
25 | }
26 | public Set getEmps() {
27 | return emps;
28 | }
29 | public void setEmps(Set emps) {
30 | this.emps = emps;
31 | }
32 | @Override
33 | public String toString() {
34 | return "Dept [did=" + did + ", dname=" + dname + "]";
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/Student.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.j_many2many;
2 |
3 | import java.io.Serializable;
4 | import java.util.HashSet;
5 | import java.util.Set;
6 |
7 | public class Student implements Serializable{
8 | private Integer sid;
9 | private String sname;
10 | private Set teachers = new HashSet<>();
11 | public Integer getSid() {
12 | return sid;
13 | }
14 | public void setSid(Integer sid) {
15 | this.sid = sid;
16 | }
17 | public String getSname() {
18 | return sname;
19 | }
20 | public void setSname(String sname) {
21 | this.sname = sname;
22 | }
23 | public Set getTeachers() {
24 | return teachers;
25 | }
26 | public void setTeachers(Set teachers) {
27 | this.teachers = teachers;
28 | }
29 | @Override
30 | public String toString() {
31 | return "Student [sid=" + sid + ", sname=" + sname + "]";
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/Teacher.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.j_many2many;
2 |
3 | import java.io.Serializable;
4 | import java.util.HashSet;
5 | import java.util.Set;
6 |
7 | public class Teacher implements Serializable{
8 | private Integer tid;
9 | private String tname;
10 | private Set students = new HashSet<>();
11 | public Integer getTid() {
12 | return tid;
13 | }
14 | public void setTid(Integer tid) {
15 | this.tid = tid;
16 | }
17 | public String getTname() {
18 | return tname;
19 | }
20 | public void setTname(String tname) {
21 | this.tname = tname;
22 | }
23 | public Set getStudents() {
24 | return students;
25 | }
26 | public void setStudents(Set students) {
27 | this.students = students;
28 | }
29 | @Override
30 | public String toString() {
31 | return "Teacher [tid=" + tid + ", tname=" + tname + "]";
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/a_hello/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | org.hibernate.dialect.MySQL5InnoDBDialect
9 | com.mysql.jdbc.Driver
10 | jdbc:mysql://localhost:3306/test
11 | root
12 | 123
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/a_hello/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 |
8 | org.hibernate.dialect.MySQL5InnoDBDialect
9 | com.mysql.jdbc.Driver
10 | jdbc:mysql://localhost:3306/test
11 | root
12 | 123
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/Dept.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/p_lazy/Dept.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/b_utils/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/b_utils/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/m_sqltime/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/m_sqltime/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/n_object3status/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/o_onelevelcache/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/n_object3status/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/o_onelevelcache/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/g_map/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/g_map/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/Emp.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/i_one2many/Emp.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/b_utils/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/b_utils/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.c_hbm;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/Wife.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | husband
12 |
13 |
14 |
15 |
16 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/a_hello/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.a_hello;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/b_utils/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.b_utils;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/l_one2one/Wife.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | husband
12 |
13 |
14 |
15 |
16 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/d_hbm2ddl/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.d_hbm2ddl;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/m_sqltime/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.m_sqltime;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/Husband.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/k_one2one/Husband.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/n_object3status/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.n_object3status;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/o_onelevelcache/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.o_onelevelcache;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.q_twolevelcache;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class User implements Serializable {
7 | private Integer id;
8 | private String name;
9 | private Date birthday;
10 | private Double money;
11 | public Integer getId() {
12 | return id;
13 | }
14 | public void setId(Integer id) {
15 | this.id = id;
16 | }
17 | public String getName() {
18 | return name;
19 | }
20 | public void setName(String name) {
21 | this.name = name;
22 | }
23 | public Date getBirthday() {
24 | return birthday;
25 | }
26 | public void setBirthday(Date birthday) {
27 | this.birthday = birthday;
28 | }
29 | public Double getMoney() {
30 | return money;
31 | }
32 | public void setMoney(Double money) {
33 | this.money = money;
34 | }
35 | @Override
36 | public String toString() {
37 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/e_set/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/f_list/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/g_map/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/h_sort/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/e_set/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/f_list/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/g_map/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/h_sort/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/m_sqltime/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/m_sqltime/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/n_object3status/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/n_object3status/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/e_set/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
23 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/e_set/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
23 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | create
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/c_hbm/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | create
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/p_lazy/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/r_hql/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | false
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/k_one2one/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/l_one2one/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/i_one2many/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | false
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/k_one2one/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/l_one2one/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | false
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/j_many2many/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | false
15 |
16 | update
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/p_lazy/Emp.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.p_lazy;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Emp implements Serializable {
7 | private Integer eid;
8 | private String ename;
9 | private Double sal;
10 | private Date hiredate;
11 | private Dept dept;
12 | public Integer getEid() {
13 | return eid;
14 | }
15 | public void setEid(Integer eid) {
16 | this.eid = eid;
17 | }
18 | public String getEname() {
19 | return ename;
20 | }
21 | public void setEname(String ename) {
22 | this.ename = ename;
23 | }
24 | public Double getSal() {
25 | return sal;
26 | }
27 | public void setSal(Double sal) {
28 | this.sal = sal;
29 | }
30 | public Date getHiredate() {
31 | return hiredate;
32 | }
33 | public void setHiredate(Date hiredate) {
34 | this.hiredate = hiredate;
35 | }
36 | public Dept getDept() {
37 | return dept;
38 | }
39 | public void setDept(Dept dept) {
40 | this.dept = dept;
41 | }
42 | @Override
43 | public String toString() {
44 | return "Emp [eid=" + eid + ", ename=" + ename + ", sal=" + sal + ", hiredate=" + hiredate + "]";
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/Emp.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.i_one2many;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Emp implements Serializable {
7 | private Integer eid;
8 | private String ename;
9 | private Double sal;
10 | private Date hiredate;
11 | private Dept dept;
12 | public Integer getEid() {
13 | return eid;
14 | }
15 | public void setEid(Integer eid) {
16 | this.eid = eid;
17 | }
18 | public String getEname() {
19 | return ename;
20 | }
21 | public void setEname(String ename) {
22 | this.ename = ename;
23 | }
24 | public Double getSal() {
25 | return sal;
26 | }
27 | public void setSal(Double sal) {
28 | this.sal = sal;
29 | }
30 | public Date getHiredate() {
31 | return hiredate;
32 | }
33 | public void setHiredate(Date hiredate) {
34 | this.hiredate = hiredate;
35 | }
36 | public Dept getDept() {
37 | return dept;
38 | }
39 | public void setDept(Dept dept) {
40 | this.dept = dept;
41 | }
42 | @Override
43 | public String toString() {
44 | return "Emp [eid=" + eid + ", ename=" + ename + ", sal=" + sal + ", hiredate=" + hiredate + "]";
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/f_list/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
23 |
24 |
29 |
30 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/f_list/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
17 |
18 |
23 |
24 |
29 |
30 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/e_set/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.e_set;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.HashSet;
6 | import java.util.Set;
7 |
8 | public class User implements Serializable {
9 | private Integer id;
10 | private String name;
11 | private Date birthday;
12 | private Double money;
13 | private Set addresses = new HashSet<>();
14 | public Integer getId() {
15 | return id;
16 | }
17 | public void setId(Integer id) {
18 | this.id = id;
19 | }
20 | public String getName() {
21 | return name;
22 | }
23 | public void setName(String name) {
24 | this.name = name;
25 | }
26 | public Date getBirthday() {
27 | return birthday;
28 | }
29 | public void setBirthday(Date birthday) {
30 | this.birthday = birthday;
31 | }
32 | public Double getMoney() {
33 | return money;
34 | }
35 | public void setMoney(Double money) {
36 | this.money = money;
37 | }
38 | public Set getAddresses() {
39 | return addresses;
40 | }
41 | public void setAddresses(Set addresses) {
42 | this.addresses = addresses;
43 | }
44 | @Override
45 | public String toString() {
46 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/h_sort/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.h_sort;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.Set;
6 | import java.util.TreeSet;
7 |
8 | public class User implements Serializable {
9 | private Integer id;
10 | private String name;
11 | private Date birthday;
12 | private Double money;
13 | private Set addresses = new TreeSet<>();
14 | public Integer getId() {
15 | return id;
16 | }
17 | public void setId(Integer id) {
18 | this.id = id;
19 | }
20 | public String getName() {
21 | return name;
22 | }
23 | public void setName(String name) {
24 | this.name = name;
25 | }
26 | public Date getBirthday() {
27 | return birthday;
28 | }
29 | public void setBirthday(Date birthday) {
30 | this.birthday = birthday;
31 | }
32 | public Double getMoney() {
33 | return money;
34 | }
35 | public void setMoney(Double money) {
36 | this.money = money;
37 | }
38 | public Set getAddresses() {
39 | return addresses;
40 | }
41 | public void setAddresses(Set addresses) {
42 | this.addresses = addresses;
43 | }
44 | @Override
45 | public String toString() {
46 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/f_list/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.f_list;
2 |
3 | import java.io.Serializable;
4 | import java.util.ArrayList;
5 | import java.util.Date;
6 | import java.util.List;
7 | import java.util.Set;
8 |
9 | public class User implements Serializable {
10 | private Integer id;
11 | private String name;
12 | private Date birthday;
13 | private Double money;
14 | private List addresses = new ArrayList<>();
15 | public Integer getId() {
16 | return id;
17 | }
18 | public void setId(Integer id) {
19 | this.id = id;
20 | }
21 | public String getName() {
22 | return name;
23 | }
24 | public void setName(String name) {
25 | this.name = name;
26 | }
27 | public Date getBirthday() {
28 | return birthday;
29 | }
30 | public void setBirthday(Date birthday) {
31 | this.birthday = birthday;
32 | }
33 | public Double getMoney() {
34 | return money;
35 | }
36 | public void setMoney(Double money) {
37 | this.money = money;
38 | }
39 | public List getAddresses() {
40 | return addresses;
41 | }
42 | public void setAddresses(List addresses) {
43 | this.addresses = addresses;
44 | }
45 | @Override
46 | public String toString() {
47 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/i_one2many/Dept.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
27 |
28 |
29 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/i_one2many/Dept.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
27 |
28 |
29 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/g_map/User.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.g_map;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 | import java.util.HashMap;
6 | import java.util.List;
7 | import java.util.Map;
8 |
9 | public class User implements Serializable {
10 | private Integer id;
11 | private String name;
12 | private Date birthday;
13 | private Double money;
14 | private Map addresses = new HashMap<>();
15 | public Integer getId() {
16 | return id;
17 | }
18 | public void setId(Integer id) {
19 | this.id = id;
20 | }
21 | public String getName() {
22 | return name;
23 | }
24 | public void setName(String name) {
25 | this.name = name;
26 | }
27 | public Date getBirthday() {
28 | return birthday;
29 | }
30 | public void setBirthday(Date birthday) {
31 | this.birthday = birthday;
32 | }
33 | public Double getMoney() {
34 | return money;
35 | }
36 | public void setMoney(Double money) {
37 | this.money = money;
38 | }
39 | public Map getAddresses() {
40 | return addresses;
41 | }
42 | public void setAddresses(Map addresses) {
43 | this.addresses = addresses;
44 | }
45 | @Override
46 | public String toString() {
47 | return "User [id=" + id + ", name=" + name + ", birthday=" + birthday + ", money=" + money + "]";
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/j_many2many/Teacher.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
21 |
22 |
23 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/j_many2many/Teacher.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
21 |
22 |
23 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | com.woniuxy
4 | hibernate
5 | 0.0.1-SNAPSHOT
6 |
7 |
8 |
9 | mysql
10 | mysql-connector-java
11 | 5.1.35
12 |
13 |
14 | junit
15 | junit
16 | 4.12
17 |
18 |
19 |
20 | org.javassist
21 | javassist
22 | 3.17.0-GA
23 |
24 |
25 |
26 | org.hibernate
27 | hibernate-core
28 | 5.4.3.Final
29 |
30 |
31 |
32 |
33 | org.hibernate
34 | hibernate-ehcache
35 | 5.4.3.Final
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/o_onelevelcache/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | false
15 |
16 | update
17 |
18 |
25 | 2
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/o_onelevelcache/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | false
15 |
16 | update
17 |
18 |
25 | 2
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/target/classes/META-INF/maven/com.woniuxy/hibernate/pom.xml:
--------------------------------------------------------------------------------
1 |
2 | 4.0.0
3 | com.woniuxy
4 | hibernate
5 | 0.0.1-SNAPSHOT
6 |
7 |
8 |
9 | mysql
10 | mysql-connector-java
11 | 5.1.35
12 |
13 |
14 | junit
15 | junit
16 | 4.12
17 |
18 |
19 |
20 | org.javassist
21 | javassist
22 | 3.17.0-GA
23 |
24 |
25 |
26 | org.hibernate
27 | hibernate-core
28 | 5.4.3.Final
29 |
30 |
31 |
32 |
33 | org.hibernate
34 | hibernate-ehcache
35 | 5.4.3.Final
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/r_hql/Emp.java:
--------------------------------------------------------------------------------
1 | package com.woniuxy.r_hql;
2 |
3 | import java.io.Serializable;
4 | import java.util.Date;
5 |
6 | public class Emp implements Serializable {
7 | private Integer eid;
8 | private String ename;
9 | private Double sal;
10 | private Date hiredate;
11 | private Dept dept;
12 |
13 | public Emp() {
14 | }
15 |
16 | public Emp(Integer eid, String ename) {
17 | this.eid = eid;
18 | this.ename = ename;
19 | }
20 |
21 |
22 |
23 |
24 | public Emp(Integer eid, String ename, Double sal) {
25 | this.eid = eid;
26 | this.ename = ename;
27 | this.sal = sal;
28 | }
29 |
30 | public Integer getEid() {
31 | return eid;
32 | }
33 | public void setEid(Integer eid) {
34 | this.eid = eid;
35 | }
36 | public String getEname() {
37 | return ename;
38 | }
39 | public void setEname(String ename) {
40 | this.ename = ename;
41 | }
42 | public Double getSal() {
43 | return sal;
44 | }
45 | public void setSal(Double sal) {
46 | this.sal = sal;
47 | }
48 | public Date getHiredate() {
49 | return hiredate;
50 | }
51 | public void setHiredate(Date hiredate) {
52 | this.hiredate = hiredate;
53 | }
54 | public Dept getDept() {
55 | return dept;
56 | }
57 | public void setDept(Dept dept) {
58 | this.dept = dept;
59 | }
60 | @Override
61 | public String toString() {
62 | return "Emp [eid=" + eid + ", ename=" + ename + ", sal=" + sal + ", hiredate=" + hiredate + "]";
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/q_twolevelcache/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 | true
21 |
22 | net.sf.ehcache.hibernate.EhCacheProvider
23 |
24 | org.hibernate.cache.ehcache.EhCacheRegionFactory
25 |
26 |
27 | com/woniuxy/q_twolevelcache/ehcache.xml
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/q_twolevelcache/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 | update
17 |
18 |
19 |
20 | true
21 |
22 | net.sf.ehcache.hibernate.EhCacheProvider
23 |
24 | org.hibernate.cache.ehcache.EhCacheRegionFactory
25 |
26 |
27 | com/woniuxy/q_twolevelcache/ehcache.xml
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/h_sort/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/h_sort/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/d_hbm2ddl/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 |
17 |
51 |
52 | validate
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/d_hbm2ddl/hibernate.cfg.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
7 | com.mysql.jdbc.Driver
8 | 123
9 | jdbc:mysql:///test
10 | root
11 | org.hibernate.dialect.MySQL5InnoDBDialect
12 |
13 | true
14 | true
15 |
16 |
17 |
51 |
52 | validate
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/main/java/com/woniuxy/c_hbm/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
8 |
9 |
10 |
14 |
15 |
85 |
86 |
87 |
88 |
95 |
96 |
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/target/classes/com/woniuxy/c_hbm/User.hbm.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
8 |
9 |
10 |
14 |
15 |
85 |
86 |
87 |
88 |
95 |
96 |
97 |
98 |
99 |
100 |
--------------------------------------------------------------------------------