随笔分类 -  Hibernate

摘要:Configuration cfg = null; SessionFactory factory = null; Session session = null; Transaction tx = null; @Before public void init(){ cfg = new Configur 阅读全文
posted @ 2016-10-24 15:47 cunzai201206 阅读(114) 评论(0) 推荐(0)
摘要:<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0. 阅读全文
posted @ 2016-10-24 15:46 cunzai201206 阅读(78) 评论(0) 推荐(0)
摘要:一、精确搜索 FullTextSession fullTextSession = Search.getFullTextSession(session); Transaction tx = fullTextSession.beginTransaction(); QueryBuilder qb = fu 阅读全文
posted @ 2016-10-24 15:45 cunzai201206 阅读(327) 评论(0) 推荐(0)