
Hibernate
文章平均质量分 67
lyon-yao
程序袁
展开
-
struts2.1+spring2.5+hibernate3.3整合之第一步(spring2.5+hibernate3.3)
需要的.jar文件:spring框架下的包:hibernate框架下的包:配置文件beans.xml: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springfr原创 2013-05-17 17:01:09 · 383 阅读 · 0 评论 -
spring多配置文件
contextConfigLocationclasspath*:conf/spring/applicationContext_core*.xml,classpath*:conf/spring/applicationContext_dict*.xml,classpath*:conf/spring/applicationContext_hibernate.xml,classpath*:con原创 2013-05-17 17:01:38 · 349 阅读 · 0 评论 -
struts2.1+spring2.5+hibernate3.3整合之第一步(spring2.5+hibernate3.3)
[color=darkred][b][i]需要的.jar文件:[/i][/b][/color]spring框架下的包:[img]http://dl.iteye.com/upload/attachment/286015/984170b7-b79b-3e45-af79-4300d1c472eb.png[/img]hibernate框架下的包:[img]http://dl.iteye...原创 2010-07-31 08:10:24 · 100 阅读 · 0 评论 -
范类定义超类,简单易用
package com.dao;import java.io.Serializable;import java.lang.reflect.ParameterizedType;import java.lang.reflect.Type;import java.util.List;import org.hibernate.SessionFactory;import org.springfram...原创 2011-08-25 17:03:27 · 386 阅读 · 0 评论 -
一个基于hibernate的超类(仿springside) 已被以后借鉴
package com.dao;import java.io.Serializable;import java.lang.reflect.ParameterizedType;import java.lang.reflect.Type;import java.util.List;import org.hibernate.Criteria;import org.hibernate.Sessio...原创 2011-09-06 09:43:02 · 118 阅读 · 0 评论 -
hibernate 延迟加载的问题终于解决了
弄了几天 hibernate3 结果被联级加载时候延迟加载搞得头都大了,自己照着别人的做都说session 不存在或者关闭 ,刚才终于解决了。fetch="join" 时候采用外连接查询,虽然提高了效率但是有时候有重复数据,还有排序多了不能达到预定的效果,fetch="select"时 hibernate会先加载主表数据,延迟加载关系数据,但是没有配置 <filter> ...原创 2011-09-06 16:00:38 · 326 阅读 · 0 评论