继承类的@Transactional:org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
摘要:
假设有以下类: savedb是父类的方法,loadDb是子类的方法。如果有以下调用: 可以看到在调父类方法时Hibernate报没有Session的错误(org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-t... 阅读全文
posted @ 2010-07-27 13:45 飞飞狐 阅读(4491) 评论(1) 推荐(1) 编辑