hibernate
1.hibernate
2.
crud
jdbc jdbc
orm
1.hidernate
2.
3.orm object relational mapping,
1.
2.
hibernate
hibernate
hibernate
jar
1.hibernate
1.
hbm.xml
2.
dtd,schema,
3.
hibernate
1.
src
hibernate.cfg.xml
2.
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
3.hibernate
hibernate
hibernate
SessionFactory
SessionFactory
crud
Hibernate
Configuration
1.
Configuration cfg = new Configuration();
cfg.configure();
Session Factory
Session
session
session
1.
2.
3.
4
session
Transaction
1.
Transaction tx = session.beginTransaction();
tx.commit();
tx.rollback();
1.
2.
3.
4.
hibernate
id
session
//
User user = new User();
user.setUsername("
user.setPassword("250");
user.setAddress("
//
session.save(user);
1
1.
2.
3.
hibernate
hibernate
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。