- 浏览: 116034 次
- 性别:
- 来自: 北京
最新评论
-
playboy0305:
正解。
geeksun 写道在执行操作前,session.cl ...
a different object with the same identifier value -
geeksun:
在执行操作前,session.clear()就行了。
a different object with the same identifier value -
qianqingfu:
文笔太烂!!!!!
a different object with the same identifier value -
oscarswing:
也就是说我写不写都行,反正仅在debug的时候有效,是吧?
ASSERT的用法 -
boreas_baosj:
恩 ~~~
a different object with the same identifier value
文章列表
ORA-02291错误
Caused by: java.sql.BatchUpdateException: ORA-02291: integrity constraint (约束名) violated - parent key not found
请参阅以下
有外键FK约束的字段可以为空
1。创建测试表
SQL> create table lesson(lesson_name varchar2(20), classroom varchar2(10));
表已创建。
SQL> create table teacher(name varchar2(20),lesson ...
- 2008-07-23 17:50
- 浏览 5285
- 评论(0)
ASSERT的用法
ASSERT( booleanExpression );
首先:booleanExpression 参数是一个bool表达式。
用法:
当程序运行到该语句的时候,程序会检查booleanExpression 这个表达式是真还是假。
如果条件符合,程序继续运行下面的代码;
如果是不符合,那么持续运行会被卡在这里。不往下面走,并有程序弹出错误对话框,指示是由于booleanExpression 这个条件符合导致的报错。
作用:
ASSERT(booleanExpression )语句一般用来检查一些必须符合的条件,如果不符合条件,则不让程序继续运行下去。
asse ...
- 2008-07-23 14:50
- 浏览 3675
- 评论(1)
tomahawk和jsf的许多按钮标签都有immediate属性,默认为false。当这个Form中的操作后的值不需要保存时设置immediate为true,其主要用途为Cancel按钮。
- 2008-07-22 22:07
- 浏览 3471
- 评论(0)
a different object with the same identifier value was already associated with the session: 的解决
在做项目的时候也遇到这个问题org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session:,但当是我没有解决,就用了一个最笨的办法,自己写HQL,是没问题了,今天到网上查看的时候看到了一篇好文章,不过我现在还没有试 ...
- 2008-07-22 20:44
- 浏览 26665
- 评论(5)
一、cookie机制和session机制的区别
具体来说cookie机制采用的是在客户端保持状态的方案,而session机制采用的是在服务器端保持状态的方案。
同时我们也看到,由于在服务器端保持状态的方案在客户端也需要保存一个标识 ...
- 2008-07-22 09:06
- 浏览 1885
- 评论(0)