我正在使用Hibernate OGM和Neo4j数据库。
对于每个操作,例如创建新实体,生成Cypher查询的日志条目很多:
...
2015-02-27 11:09:41.825+0000 INFO [org.neo4j]: CREATE (n:ENTITY:TreeElement {id: {0}}) RETURN n
2015-02-27 11:09:41.869+0000 INFO [org.neo4j]: CREATE (n:ENTITY:TreeElement {id: {0}}) RETURN n
2015-02-27 11:09:41.873+0000 INFO [org.neo4j]: MATCH (n:ENTITY:TreeElement {id: {0}}) RETURN n
2015-02-27 11:09:41.908+0000 INFO [org.neo4j]: MATCH (n:ENTITY:TreeElement {id: {0}}) RETURN n
2015-02-27 11:09:41.911+0000 INFO [org.neo4j]: CREATE (n:ENTITY:TreeElement {id: {0}}) RETURN n
2015-02-27 11:09:41.913+0000 INFO [org.neo4j]: MATCH (n:ENTITY:TreeElement {id: {0}}) RETURN n
2015-02-27 11:09:41.914+0000 INFO [org.neo4j]: MATCH (n:ENTITY:TreeElement {id: {0}}) RETURN n
...
如何禁用此功能?
我已尝试在persistance.xml文件中设置hibernate.show_sql
属性:
<property name = "hibernate.show_sql" value = "false" />
,但没有结果。