- 博客(49)
- 收藏
- 关注
如何获得排他锁?
Session sess=HiberanteUtil.getSession();Transaction tx=sess.beginTransaction();User user=sess.get(User.class,id,LockMode.UPGRADE);user.set... //3...调试的时候发现...
2007-04-23 00:22:32
184
Hibernate如何判断是否将数据写回数据库?
在commit的时候,hibernate会将哪些数据写回数据库呢? dirty-check过程如何?可以在哪些地方设置隔离级别? Criteria cr1=sess.createCriteria(Transition.class); cr1.add(Restrictions.in("taskId",taskIdList)); List tranList=cr1.list();如...
2007-04-22 09:23:22
251
cvsnt connection reset
2003Server Systemcvsnt 2.5two repositories/temp1 d:/temp nfts/temp2 f:/temp fat32Connection to /temp2 is ok,while trying connect to /temp1 using the same user & password,"connection reset"...
2007-04-12 21:06:18
173
getResourceAsStream()
getClass().getResourceAsStream(a)这个类:package aaa.bbb.ccc;如果String a 是以"/"开始的,则a描述的路径是相对于这个类所在包的根路径而言的,即为相对于文件夹aaa所在目录开始,如果String a 不是以"/"开始的,则a描述的路径是相对于这各类当前的文件夹而言的,即位ccc...
2007-02-07 23:07:00
150
instanceof?
Object obj=new Object();Integer i=new Integer();Object o=new Integer();obj instanceof List 语法正确i instanceof List 语法错误 o instanceof List 语法正确似乎只要声明的类型和instanceof后面的类型不冲突,就是语法正确的...
2007-02-07 22:54:00
136
An Example of association query
................................. String hql="select task,insL.InsName,insR.InsName,tra" +" from Institution as insL,Transition as tra,Institution as insR,Task as task" +" where task.id...
2007-02-07 22:48:00
153
What you should do before you new a project
1.设置IDE的encoding(即项目默认的encoding,建议UTF-8) ,以避免各个开发人员自己的IDE encoding不同,出现乱码。2.配置CVS服务器,确定Project的文件结构,特别注意哪些文件不需要用CVS同步,比如自己的几个测试文件,临时文件等等。3。。...
2007-02-07 22:35:00
193
Hibernate Synchronizer把char(1)映射成true-false?
Hibernate Synchronizer,ORM,char(1)
2007-02-07 22:29:00
198
Hibernate Synchronizer把char(1)映射成true-false?
是不是有bug啊?还有每次把选择hbm.xml映射添加到Hibernate.cfg.xml中时,总是会把文件前几行删除,不得不用"compare with local history" 来快速把那句话加上。
2007-02-07 22:29:00
169
HQL中连接查询的问题
如果要使用left outer join或者right outer join等,是否一定需要在对应的两个.hbm.xml中配置之类的关系?
2007-02-04 23:09:17
185
Hibernate Synchronizer 3.1.9的问题吗?
发现在使用hibernate synchronizer 3.1.9自动生成的DAO中的方法时,报出"session is closed."异常比如使用findByName()方法时,查看了一下生成的代码,发现 public java.util.List<mapping.User> findByName (java.lang.String name) { return findFilt...
2006-12-20 04:21:00
124
DAO的findBy***竟然不提示出错?
当程序中只用到UserDAO.findByName()时,即使未加载mapping文件,程序也不报错.如: _RootDAO.initialize(); UserDAO userdao=new UserDAO(); User user=new User(); user.setName("user3"); // userdao.save(user); java.util.List list...
2006-12-20 04:04:00
250
属性名小写的错误.
在hibernate.cfg.xml中,如果将name=UID写为name=uID,则运行时出错:Could not find a getter for uId in class mapping.User
2006-12-20 03:59:00
113
JSmooth有bug吗?
下载安装后的界面和manual中显示的不一样,而且编译一个生成的.exe文件,执行时有时提示main class找不到,有时正常,但是编译之前的设置都是相同的,而且.jar文件也能正确运行. ...
2006-10-06 15:30:00
116
tomcat中类路径
from tomcat's online help.l $CATALINA_HOME/common/lib - JAR files placed here arevisible both to web applications and internal Tomcat code. This isa good place to put JDBC drivers that are required fo...
2006-10-03 23:23:00
260
数据库连接池
在servlet的init()方法中创建连接池管理类的事例,并保存,在service()方法中调用getConnection()方法,执行方法数据库操作,...在destroy()方法中调用release()释放所有资源. ...
2006-10-02 01:45:00
81
Clean Command
Clean command (from JBuilder's help)The Clean command removes all build output of the other targets, such as the classes directory, JARs, WARs, and so on. If the source and output paths are the same, ...
2006-10-02 00:58:00
158
DTS中null问题.
将Excel文件导入sqlserver中时,excel中为空的单元格在导入后的表中显示为null,而不是"",暂时的解决方法:将sqlserver的表导出成文本(txt或者csv),再导入sqlserver就可以了. ...
2006-07-24 20:52:00
138
Input Data Source中的role
Help中的内容如下: Choose the data Role from the drop-list. The role determines how the data set is used throughout the process flow. The role may be any of the following: RAW - used as raw input to the ...
2006-03-28 21:59:00
234
TChart(2)
已经在form上放好一个tchart组件,并且为它添加了一个series。现在准备产生series。先编写代码来产生一些点值。假设我们所添加得series是一个pie series。我们可以通过下面得方式生成series。series命名为默认的series1。在你的form上添加一个button,并编写事件:With Series1 doBegin Add( 40, 'Pencil' ,...
2005-08-17 16:06:00
217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人