Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework Tomcat日志显示;sessionFactoryImpl返回对SessionFactory的引用;多次_Entity Framework_Hibernate_Jpa_Sessionfactory - Fatal编程技术网

Entity framework Tomcat日志显示;sessionFactoryImpl返回对SessionFactory的引用;多次

Entity framework Tomcat日志显示;sessionFactoryImpl返回对SessionFactory的引用;多次,entity-framework,hibernate,jpa,sessionfactory,Entity Framework,Hibernate,Jpa,Sessionfactory,我在hibernate模型类中使用了hibernate实体和多个引用实体,并且在spring hibernate应用程序(启用c3po池和事务管理)中尝试获取任何实体时,使用 [SessionFactoryImpl:getReference(1154)]-返回对SessionFactory的引用 我尝试过使用新实体,但没有对测试的引用,在tomcat日志中没有看到sessionFactoryImpl:getReference的任何日志条目,但当我尝试使用其中一个引用时,日志中有一个条目 可能这取

我在hibernate模型类中使用了hibernate实体和多个引用实体,并且在spring hibernate应用程序(启用c3po池和事务管理)中尝试获取任何实体时,使用

[SessionFactoryImpl:getReference(1154)]-返回对SessionFactory的引用

我尝试过使用新实体,但没有对测试的引用,在tomcat日志中没有看到sessionFactoryImpl:getReference的任何日志条目,但当我尝试使用其中一个引用时,日志中有一个条目

可能这取决于hibernate模型类中有多少引用实体。当您触发任何查询时,hibernate sessionFactory会为每个引用实体创建代理对象,并在执行时将其返回给session/sessionFactory对象

它与事务管理或sessionFactory相关。如果是,是否有任何方法可以在tomcat中禁用或管理这些日志条目