![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 52
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 · 211 阅读 · 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 · 235 阅读 · 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 · 235 阅读 · 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 · 171 阅读 · 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 · 270 阅读 · 0 评论