Wednesday, June 19, 2013 11:32

Archive for February, 2009

Spring中quartz的调度表达式

Friday, February 27, 2009 16:55

Schedule of springframework:        cron expression...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Tagged with:
TIPs for SQL Server 2005

TIPs for SQL Server 2005

Friday, February 27, 2009 16:53

connect database using port: Assign tcp port:

This was posted under category: SQL Server  |  Read Full Story  |  0 Comments
Tagged with:

Java中replaceAll和split中的反斜杠

Friday, February 27, 2009 16:46

在Java中处理一些路径相关的问题的时候,如要取出ie...

This was posted under category: Java  |  Read Full Story  |  0 Comments
Tagged with:

Apache+SVN

Friday, February 27, 2009 16:44

越来越多的人采用Subversion代替CVS来构建版本控制系统,Subversion默认提供两种服务模式,一种是自己实现的 svnserve,可以通过svn协议访问,另一种也是采用最为广泛的一种方式是借助apache http server来实现,可以通过http webdav方式访问,这里主要介绍第二种方式的安装和使用,安装环境为Windows XP。...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments

DAO层单元测试

Friday, February 27, 2009 16:41

对于一些框架软件,例如springframework来说,要测试的是API实现的逻辑,这种情况下大量mock隔离其他对象的影响是必要的。但是对于我们应用程序,特别是数据处理型应用,你不测试数据库访问,根本就等于没有做测试。换句话说测试DAO就是在测试你的Hibernate映射关系有没有配对,你的HQL查询有没有写对,这一Mock,要测试的真正目标根本就没有达到。   这种DAO测试诚然就是集成单元测试,其实就是对于Web Action测试,我也曾经一度认为应该mock service来测试,但是现在我已经不这样做了,而是真正初始化webwork的容器注入真正的service对象来测试了。因为...

This was posted under category: Architecture  |  Read Full Story  |  1 Comment
Tagged with:

Hibernate双向关联中常常用Set 而不用List

Friday, February 27, 2009 16:37

对于一对多关联当中的List,需要在数据库里面维护一个index列,如果List当中的某个元素被删除,那么Hibernate会连续发送多条 update语句,更新后续所有元素的index列,以确保index的连续性(在inverse为false的情况下),如果你选择自己维护index 列,也同样会面临这个问题,甚至更棘手(在inverse为true的情况下),所以List被谨慎的使用在极其罕见的场合。  ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Tagged with:

Spring开发过程中常用的模式

Friday, February 27, 2009 16:33

Exception Translator (...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Tagged with:

Elegant Software

Friday, February 27, 2009 16:31

When I write code, elegance is something I aspire to, and in some senses goes hand-in-hand with beautiful code, but that doesn't really make it any clearer. Certainly, I think there is a strong element of "elegance is ...

This was posted under category: Architecture  |  Read Full Story  |  0 Comments
Tagged with:

Moving tablespace to a new location

Friday, February 20, 2009 9:55

1)    Take the tablespace offline ALTER TABLESPACE tablespace-name OFFLINE; 2)    Use the OS to Move the tablespace to the new location 3)    Run the following command: ALTER TABLESPACE tablespace-name RENAME DATAFILE ‘OS path to old tablespace\tablespace-datafile- name.dbf’ TO ‘OS path to new location\tablespace-datafile-name.dbf’; 4)    Take the tablespace back online ALTER TABLESPACE tablespace-name ONLINE; If the following error ...

This was posted under category: Oracle  |  Read Full Story  |  0 Comments
Tagged with:

Locale problem in Documentum

Monday, February 16, 2009 17:13

The locale 'en' is not present in the docbase. Locale-sensitive information for the type 'stnd_doc' will not be installed. ERROR: Installation cannot proceed. DfException:: THREAD: main; MSG: [DM_QUERY2_E_DATA_DICT_ERROR_FOR_TYPE_A_C]error: "The following error(s) occurred processing an ALTER/CREATE statement for type stnd_doc." [DM_QUERY2_E_INVALID_LOCALE_SETTING]error: "ALTER/CREATE TYPE: The ...

This was posted under category: Documentum  |  Read Full Story  |  0 Comments
Tagged with: