首页

搜索结果

"tag:"hibernate""

<<上篇 1 2

标题及摘要 日期/时间
21
配置Spring+hibernate使用ehcache作为second-level cache
大量数据流动是web应用性能问题常见的原因,而缓存被广泛的用于优化数据库应用。cache被设计为通过保存从数据库里load的数据来减少应用和数据库之间的数据流动。数据库访问只有当检索的数据不在cache里可用时才必要。hibernate可以用两种不同的对象缓存:first-level cache 和 second-level cache。first-level cache和Session对象关联,而second-level cache是和Session Factory对象关联。 缺省地,hiberna...
2007-6-20
10:06:11
22
Hibernate optimistic locking exception
HibernateOptimisticLockingFailureException,The error occurs because at least 2 transactions are working on the same record(s). If a record is read by 2 transactions, and if the record is saved by one transaction first, and then by the second one, an optim...
2007-4-26
13:19:57
23
在Hibernate里使用Oracle的强制索引查询提示hints
在Hibernate Hql里使用数据库某些特殊的功能,例如使用Oracle的查询提示(hints)(如强制Oracle使用某个索引),使用用户自定义的数据库函数等,Hibernate的官方文档里已经有提到这个,不能使用Hql做数据库查询提示,而是使用三种Hibernate查询方法HQL,Criteria Queries,Native SQL里的Native SQL 本地SQL。
2007-4-10
10:13:35
24
SQL state [72000]; error code [1009]; ORA-01009: 必需的参数缺失 ;missing mandatory parameter
当应用出现如下异常: StatementCallback; uncategorized SQLException for SQL [select nvl(flow_Step,0) as flow_Step from ec_Acc_Fee where zone_Code like '01%' and user_Id=1004259812]; SQL state [72000]; error code [1009]; ORA-01009: 必需的参数缺失 ; nested exception is ja...
2007-3-2
22:16:21
25
Hibernate Users FAQ
Hibernate Common Problems
2007-2-2
12:56:31
26
a different object with the same identifier value was already associated with the session
I have found two solution to this issue. Here it is, there are two. 1. Use cascase = none. 2. Use merge instead of saveandupdate. The problem here is that you pass in a detached object which gets reattached to the Session. You also fetch the same ob...
2007-1-30
15:03:50
27
Hibernate Performance Tips(Hibernate 性能技巧)
Some people I know are looking at porting their (very large) J2EE application from using a homegrown OR framework on top of Entity Beans with CMP (without CMR) to Hibernate, and they asked me for some tips. I‘m not claiming to be a Hibernate exp...
2006-11-8
19:51:55
28
Wire Hibernate Transactions in Spring
  本文主要探讨如何利用Spring来装配组件,包括其事务上下文。从J2EE应用程序内部连接到单个的数据库并不是什么难事。但是,如果要装配或者集成企业级的组件,情况就复杂了。一个组件可以有一个或多个支持它的数据库,因此,当装配两个或更多的组件时,我们希望能够保持在跨组件的多个数据库中进行的操作的原子...
2006-10-9
20:21:26

<<上篇 1 2