刚打开游标的时候,是位于一个空行,要用fetch into
才能到第一行。只是要注意用更新游标的时候,不能在游标期间commit. 否则会报ORA-01002: fetch out of
sequence就是COMMIT导致的错误。在打开有for update的cursor时,系统会给取出的数据加上...
分类:
数据库 时间:
2014-05-26 01:07:05
阅读次数:
405
hibernate中关系的映射有多种,一对一,一对多/多对一,多对多,其中还分单向和双向,其实简单来讲,如果你想获得另一个对象的引用,你就可以在类中定义一个该对象或该对象的集合。至于表中的关系就是在多方存你的外键而已,如果是多对多,则建立一个中间表,用来存两个关联对象的外键。一对多&多对一双向双向关...
分类:
系统相关 时间:
2014-05-26 00:57:44
阅读次数:
324
Ibatis和Hibernate的比较分类:IBATISHIBERNATE2010-11-19
17:58341人阅读评论(0)收藏举报hibernateibatis数据库sqlcachetable我在最初的选型的时候是打算选择 Hibernate
的,在研究的过程中发现了 iBatis,经过 分析...
分类:
系统相关 时间:
2014-05-25 23:34:14
阅读次数:
353
##报错来源分析 由于hibernate-entitymanager 需要jboss logging
。由于或多或少的原因导致 maven无法下载相关的jar文件。##解决办法: 访问 http://search.maven.org
搜索jboss-logging 点击all, 找到相...
分类:
其他好文 时间:
2014-05-25 23:23:26
阅读次数:
401
分类:SPRINGIBATIS2010-11-22
20:191170人阅读评论(0)收藏举报ibatisspringstringpropertiesclassuser
最近一直在看spring和ibatis的东西,由于目前SSH的流行,大多讲Spring和Hibernate的整合开发,作者一直对....
分类:
编程语言 时间:
2014-05-25 23:20:49
阅读次数:
514
大家有耐心的跟着做就能成功;很完成很好的一个实例;将三大框架整合使用
SSH(struts2、spring、hibernate)
* struts2
* 充当mvc的角色
* hibernate
dao层用hibernate技术来实现
* spring
* spring的声明式事务管理
* 应用spring的IOC和di做到完全的面向接口编程...
分类:
其他好文 时间:
2014-05-25 18:27:36
阅读次数:
319
【题目】
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is defined as a character sequence consists of non-space ...
分类:
其他好文 时间:
2014-05-25 07:39:05
阅读次数:
256
【题目】
The set [1,2,3,…,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order,
We get the following sequence (ie, for n = 3):
"123"
"132"
"213"
"231"
"312"
"321"
Given n and k, return the kth permutation ...
分类:
其他好文 时间:
2014-05-25 06:13:37
阅读次数:
276
题目
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
解答...
分类:
其他好文 时间:
2014-05-25 00:37:34
阅读次数:
284
初学Hibernate,用官方给的日志模板配置好了日志,跑起小例子,控制台中的日志里写了一些异常:
21:16:36,036DEBUGEntityLoader:146-
Staticselectforentitycn.sjll.hibernate435.model.UserModel
[OPTIMISTIC_FORCE_INCREMENT]:selectusermodel0_.IDasID1_0_0_,
usermodel0_.N..
分类:
系统相关 时间:
2014-05-24 16:42:45
阅读次数:
388