From 099dd55b94b2fb3c08681921b09e6f8bf3a3ea80 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Mon, 6 Dec 2021 12:29:18 -0600 Subject: [PATCH] Tests for checking multiple execution of EmbeddableInitializers --- .../tool/schema/ast/SqlScriptLogging.java | 9 ++++-- .../src/test/resources/log4j2.properties | 30 ++++++++++++------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/tool/schema/ast/SqlScriptLogging.java b/hibernate-core/src/main/java/org/hibernate/tool/schema/ast/SqlScriptLogging.java index d080151024..4249052bea 100644 --- a/hibernate-core/src/main/java/org/hibernate/tool/schema/ast/SqlScriptLogging.java +++ b/hibernate-core/src/main/java/org/hibernate/tool/schema/ast/SqlScriptLogging.java @@ -7,12 +7,15 @@ package org.hibernate.tool.schema.ast; import org.jboss.logging.Logger; -import org.jboss.logging.annotations.ValidIdRange; /** - * @author Steve Ebersole + * Logging specific to parsing of SQL import scripts used in schema export. + * + * These scripts are processed using Antlr and this logging relates to + * that parsing. + * + * @todo (6.0) - implement usage of this */ -@ValidIdRange( ) public class SqlScriptLogging { public static final String SCRIPT_LOGGER_NAME = "org.hibernate.orm.tooling.schema.script"; public static final Logger SCRIPT_LOGGER = Logger.getLogger( SCRIPT_LOGGER_NAME ); diff --git a/hibernate-core/src/test/resources/log4j2.properties b/hibernate-core/src/test/resources/log4j2.properties index 497d39ace7..b6ffb8b759 100644 --- a/hibernate-core/src/test/resources/log4j2.properties +++ b/hibernate-core/src/test/resources/log4j2.properties @@ -34,29 +34,32 @@ logger.jdbc-extract.name=org.hibernate.orm.jdbc.extract logger.jdbc-extract.appenderRef.subsystem.ref=subsystem logger.jdbc-extract.level=trace +# "Graph Language" Antlr parsing logger.graph.name=org.hibernate.orm.graph -logger.graph.level=debug logger.graph.appenderRef.subsystem.ref=subsystem +#logger.graph.level=debug -## Hibernate's JUnit extensions (hibernate-testing) -## - set to DEBUG or TRACE to see additional details -## from those extensions -logger.junit.name=org.hibernate.testing.orm.junit -logger.junit.appenderRef.subsystem.ref=subsystem -#logger.junit.level=debug - +# SQL import script processing +# NOTE : see org.hibernate.tool.schema.ast.SqlScriptLogging logger.tooling-schema-script.name=org.hibernate.orm.tooling.schema.script logger.tooling-schema-script.appenderRef.subsystem.ref=subsystem #logger.tooling-schema-script.level=trace +# SQL import script parsed AST logging +# NOTE : see org.hibernate.tool.schema.ast.SqlScriptLogging logger.tooling-schema-script-graph.name=org.hibernate.orm.tooling.schema.script.graph logger.tooling-schema-script-graph.appenderRef.subsystem.ref=subsystem #logger.tooling-schema-script-graph.level=trace - +# Logging related to the creation of DomainResult/Fetch graphs logger.sql-result-graph.name=org.hibernate.orm.sql.results logger.sql-result-graph.appenderRef.subsystem.ref=subsystem -logger.sql-result-graph.level=debug +#logger.sql-result-graph.level=debug + +# Logs generated DomainResult/Fetch AST graph +logger.sql-result-ast.name=org.hibernate.orm.sql.results.graph.AST +logger.sql-result-ast.appenderRef.subsystem.ref=subsystem +logger.sql-result-ast.level=debug ## Logs every SQM tree logger.sqm-tree.name=org.hibernate.orm.query.sqm.ast @@ -121,6 +124,13 @@ logger.stat.name=org.hibernate.stat logger.stat.level=trace +## Hibernate's JUnit extensions (hibernate-testing) +## - set to DEBUG or TRACE to see additional details +## from those extensions +logger.junit.name=org.hibernate.testing.orm.junit +logger.junit.appenderRef.subsystem.ref=subsystem +#logger.junit.level=debug + # Specialized handling for tracking unclosed Session/SessionFactory resources as part of testing appender.unclosedSessionFactoryFile.type=File appender.unclosedSessionFactoryFile.name=unclosedSessionFactoryFile