Servlet.service() for servlet [ConferenceServlet] in context with path [/conf4u] threw exception at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:152)
在我们将应用程序从hibernate3迁移到hibernate4的一周前,hibernate3中的每件事情都很好,但是在迁移到hibernate4之后。我一直得到不支持的嵌套事务。下面是我的服务层,它调用了
public class LeaveApplicationService implementsSerializable,LeaveApplicationInterfaceServicetimeProjectCategories.a
$ConnectionProviderJdbcConnectionAccess@44784e2f] for (non-JTA) DDL execution was not in auto-commitmode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit]我有一个根本解决不了的问题。我想在我的数据库中插
伙计们,我知道如果您加载一个对象,关闭hibernate中的一个会话,然后尝试获取有关相关对象的信息,而这个关联的FetchType是惰性的--它显然会给您LazyInitializationException有人能告诉我为什么如果我启动另一个事务,然后尝试加载相关的对象,我仍然会得到这个异常吗?让我说我有指导员课和一对多的相关课程。课程很懒。sessionFactory.getCurrentSession();
s