hibernate
文章平均质量分 61
static_mkk
https://github.com/static-mkk
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
javaee之hibernate(one-to-many)
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">原创 2016-11-03 11:15:02 · 259 阅读 · 0 评论 -
javaee之hibernate(1)
hibernate.cfg.xml的配置<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">原创 2016-10-21 21:04:25 · 291 阅读 · 0 评论 -
javaee之hibernate—session
Session session = MySessionFactory.getSessionFactory().openSession();session.load 和session.get的区别1.load会在对象不被使用的时候,不去发送sql语句到数据库查询,get则会发送语句去数据库查询2.load查询的语句没有相对应的数据,会报错,notfuandEXcption,而g原创 2016-10-23 17:49:11 · 274 阅读 · 0 评论 -
javaee之hibernate(1<第二次自己配置>)
package util;import org.hibernate.Session;import org.hibernate.SessionFactory;import org.hibernate.cfg.Configuration;public class SessionFactoryUtil { // 写一个获取session的工具类 // 这里写之前配置文件里那个配置文件原创 2016-10-29 17:58:56 · 208 阅读 · 0 评论 -
javaee之hibernate之many-to-one
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">原创 2016-10-31 20:30:41 · 343 阅读 · 0 评论
分享