hibernate
zhanghe687
一个程序猿的发展之路
展开
-
hibernate4在执行sql时出现nested transactions not supported
环境:hibernate4 public void insertPaperContent(Integer author,String paperContent) {String sql = "select max(p.paperId) from Paper p where author = "+author;Session session = getSessionFactory().g原创 2016-05-18 15:09:04 · 8809 阅读 · 0 评论 -
Could not obtain transaction-synchronized Session for current thread
(hibernate4)已经在web.xml中已经使用OpenSessionInViewFilterorg.springframework.orm.hibernate4.support.OpenSessionInViewFiltersessionFactoryBeanNamesessionFactorysingleSessiontrue原创 2016-11-14 22:21:57 · 290 阅读 · 0 评论