0

1

回答

609 浏览

Hibernate4+spring3.2整合事物问题[已解决]0

首先描述下环境,使用spring3.2MVC+hibernate 4.2.1 问题:事务不提交,session不关闭 测试过程: 1、使用openSession(),手动开启事物,关闭事物没问题 2、使用getCurrentSession(),单元测试没问题,集成之后事务回滚 声明:代码逻辑没有错误。 单元测试父类 @RunWith(SpringJUnit4ClassRunner.class) ...

2014年12月12日 18:06
0

1

回答

1544 浏览

spring4 + jpa + hibernate4延迟加载问题[已解决]10

在开发中遇到了延迟加载问题,望各位大神帮忙解决,谢谢: web.xml已经配置了OpenEntityManagerInViewFilter: <filter> <filter-name>openEntityManagerInViewFilter</filter-name> <filter-class>org.springframework.orm ...

2014年7月16日 11:31
0

2

回答

2996 浏览

hibernate4 存blob session.flush 报错[已解决]0

不知道什么原因,或者哪写错了。 SessionFactory sf = sessionFactory; Session session = sf.openSession(); LobHelper lobHelper = session.getLobHelper(); z.setWj(lobHelper.createBlob(new byte [100])); session.beginTr ...

2014年1月22日 10:50
0

2

回答

1464 浏览

SpringMVC+Hibernate4.2+Junit4环境整合,问题.[已解决]5

看了@jinnianshilongnian的 http://www.iteye.com/topic/1120924这文章,然后自己从别的地方考虑,自己搭建环境,在JUNIT测试的时候出了问题,没法获取Spring注入的属性. 整体环境如下: 2,这是我的BaseDaoImpl实现..... 3...Junit4单元测试,我所选的那个dao,怎么总是null呢?是不是我的spring没有注入 ...

2013年5月27日 16:35
0

0

回答

298 浏览

hibernate4 多对多关联映射,关联表无插入数据[已解决]5

hibernate4 多对多关联映射,用web方式操作数据,中间关联表没有数据操作。(resource,role,res_role[关联表]) 用测试类操作一切正常

2013年3月31日 11:38
0

1

回答

904 浏览

hibernate4+Spring3使用quartz做任务调度时的延迟加载问题[已解决]0

在hibernate3的时候,我用SessionFactoryUtils的getSession方法是不会有延迟加载问题的。 后来换到hibernate4的时候,SessionFactoryUtils里面没有getSession方法,只有openSession,但是在调用之后会报延迟加载的异常,请问高人有什么办法,谢谢~

2012年11月12日 20:59
0

1

回答

2540 浏览

hibernate4 外键级联删除cascade="delete"属性失效不起作用[已解决]5

下面是我的两个映射文件: Blog: <class name="Blog" table="blog"> <id name="id" column="id"> <generator class="identity"></generator> </id ...

0

0

回答

876 浏览

hibernate4多对一是怎么实现双向关联的[已解决]5

我的按hibernate3实现的,报Table [COURSES] contains logical column name [ID] referenced by multiple physical column names: [ID], [s_id]错,3是好的, 相关代码: <class name="Course"> <id name="id&q ...

2012年8月03日 10:32
0

0

回答

2107 浏览

spring3 整合hibernate4 事务出错[已解决]3

配置文件如下 <context:component-scan base-package="xx.xx.service" /> <bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> <p ...

2012年2月11日 10:16

本周活跃投票用户

最新评论

Global site tag (gtag.js) - Google Analytics