- 博客(6)
- 资源 (6)
- 收藏
- 关注
原创 Spring TestContext 测试框架
1. 添加org.springframework.test-3.0.1.RELEASE-A.jar。2. 新建test-context.xmlxml version="1.0"encoding="UTF-8"?>beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.or
2012-06-20 08:52:37 2694
转载 WHY CQRS and EVENT SOURCING
1. Business value of the events, the value of having a log, the fact that the Event Store is additive only.2. The biggest advantage of this architecture is that it allows you to design your model to
2012-06-14 13:39:57 1520
转载 EntityManager一些常用的API
1)get entity —— find() or getReference() Person person = em.find(Person.class,1); 当在数据库中没有找到记录时,getReference()和find()是有区别的,find()方法会返回null,而getReference() 方法会抛出javax.persistence.EntityNotF
2012-06-13 18:07:26 1733
转载 JPA EntityManager的四个主要方法 ——persist,merge,refresh和remove
public void persist(Object entity)persist 方法可以将实例转换为 managed( 托管 ) 状态。在调用 flush() 方法或提交事务后,实例将会被插入到数据库中。 对不同状态下的实例 A , persist 会产生以下操作 :1. 如果 A 是一个 new 状态的实体,它将会转为 managed 状态;2.
2012-06-08 11:14:20 2130
转载 多次请求后tomcat网页假死
http://hi.baidu.com/luo_qing_long/blog/item/ca729c1f04e40c69f724e449.html多次请求后tomcat网页假死2009-10-20 22:31=============问题=====今天用ajax做网络连接的测试,涉及hibernate,open()用的是true,当循环测试几次后,再点击测试,客户端就不会再
2012-06-06 16:40:51 6662 1
原创 让Tomcat支持中文路径和中文文件名
apache-tomcat-6.0.35\conf目录中server.xml URIEncoding="utf-8" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
2012-06-05 19:03:52 3263
C# 委托与事件 Delegates-and-Events-in-CSharp
2010-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人