随笔分类 -  hibernate

摘要:1. 加入 Spring 1). 加入 jar 包 2). 配置 web.xml 文件 3). 加入 Spring 的配置文件. new一个spring 配置文件: applicationContext.xml (eclipse集成spring, 插件springsource-tool-suite- 阅读全文
posted @ 2018-06-06 17:33 林** 阅读(618) 评论(0) 推荐(1) 编辑
摘要:package com.test.bbs.util; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import org.hibernate.service.ServiceRegistry; import org.hiberna... 阅读全文
posted @ 2018-03-19 15:14 林** 阅读(65) 评论(0) 推荐(0) 编辑
摘要:package com.test.Util; import org.hibernate.SessionFactory; import org.hibernate.cfg.AnnotationConfiguration; public class HibernateUtil { private static final SessionFactory sessionFactory; ... 阅读全文
posted @ 2018-03-01 15:50 林** 阅读(82) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-03-01 09:21 林** 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-02-28 15:48 林** 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-02-28 15:16 林** 阅读(1) 评论(0) 推荐(0) 编辑
摘要:1.实体类Student package com.test.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity pu 阅读全文
posted @ 2018-02-28 09:58 林** 阅读(152) 评论(0) 推荐(0) 编辑
摘要:1. 树实现通过pid进行指向上一层来实现,实体类代码如下 2.测试类代码如下, 查询时可通过递归进行查询 阅读全文
posted @ 2018-02-27 17:31 林** 阅读(86) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-02-27 11:35 林** 阅读(4) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-02-26 18:05 林** 阅读(1) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示