我是一个单元--使用Spring的EmbeddedDatabaseBuilder作为数据源进行测试,并使用Spring 4和Hibernate 4将其传递到SessionFactory的HibernateHibernateException: Could not obtain transaction-synchronized Session for current thread在
我的代码是: import org.hibernate.cfg.AnnotationConfiguration; import org.hibernate.tool.hbm2ddl.SchemaExport;
public class TestEmployeesession = factory.getCurrentSession(
您好,我正在使用Hibernate 3.0在下面的代码中,客户端是我想保存的pojo。// TODO Auto-generated catch block } org.hibernate.HibernateException: No HibernateSession bound to thread, and configuration does not allow creat