摘要:
import java.io.File;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import javax.xml.xpath.XPath;import javax.xml.xpath.XPathConstants;import javax.xml.xpath.XPathExpression;import javax.xml.xpath.XPathFactory;import org.w3c.dom.Document;public class Test { . 阅读全文
posted @ 2013-11-20 14:06
High阔天空
阅读(200)
评论(0)
推荐(0)
摘要:
来源(转载):http://blog.csdn.net/woshisap/article/details/70244821:getCurrentSession会把Session和当前的线程关联起来,而openSession只是重新开启一个Session2:getCurrentSession获得的Session会在事务关闭或者回滚时会自动关闭,而openSession获得的Session必须手动关闭 getCurrentSession,特定的实现用它来负责跟踪当前的上下文session,Hibernate内置了此接口的两种实现 * org.hibernate.context.JTASession 阅读全文
posted @ 2013-11-20 11:52
High阔天空
阅读(328)
评论(0)
推荐(0)

浙公网安备 33010602011771号