lighter punctuation in binding/extracting log message (#6790)
This commit is contained in:
parent
96941f3775
commit
aff3c105b6
|
@ -26,7 +26,7 @@ public interface JdbcBindingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
LOGGER.tracef(
|
LOGGER.tracef(
|
||||||
"binding parameter [%s] as [%s] - [%s]",
|
"binding parameter (%s:%s) <- [%s]",
|
||||||
jdbcPosition,
|
jdbcPosition,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode ),
|
JdbcTypeNameMapper.getTypeName( typeCode ),
|
||||||
value
|
value
|
||||||
|
@ -37,7 +37,7 @@ public interface JdbcBindingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
LOGGER.tracef(
|
LOGGER.tracef(
|
||||||
"binding parameter [%s] as [%s] - [null]",
|
"binding parameter (%s:%s) <- [null]",
|
||||||
jdbcPosition,
|
jdbcPosition,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode )
|
JdbcTypeNameMapper.getTypeName( typeCode )
|
||||||
);
|
);
|
||||||
|
@ -47,7 +47,7 @@ public interface JdbcBindingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
LOGGER.tracef(
|
LOGGER.tracef(
|
||||||
"binding parameter [%s] as [%s] - [%s]",
|
"binding parameter (%s:%s) <- [%s]",
|
||||||
callableParameterName,
|
callableParameterName,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode ),
|
JdbcTypeNameMapper.getTypeName( typeCode ),
|
||||||
value
|
value
|
||||||
|
@ -58,7 +58,7 @@ public interface JdbcBindingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
LOGGER.tracef(
|
LOGGER.tracef(
|
||||||
"binding parameter [%s] as [%s] - [null]",
|
"binding parameter (%s:%s) <- [null]",
|
||||||
callableParameterName,
|
callableParameterName,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode )
|
JdbcTypeNameMapper.getTypeName( typeCode )
|
||||||
);
|
);
|
||||||
|
|
|
@ -26,7 +26,7 @@ public interface JdbcExtractingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
JdbcExtractingLogging.LOGGER.tracef(
|
JdbcExtractingLogging.LOGGER.tracef(
|
||||||
"extracted value ([%s] : [%s]) - [%s]",
|
"extracted value (%s:%s) -> [%s]",
|
||||||
jdbcPosition,
|
jdbcPosition,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode ),
|
JdbcTypeNameMapper.getTypeName( typeCode ),
|
||||||
value
|
value
|
||||||
|
@ -37,7 +37,7 @@ public interface JdbcExtractingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
JdbcExtractingLogging.LOGGER.tracef(
|
JdbcExtractingLogging.LOGGER.tracef(
|
||||||
"extracted value ([%s] : [%s]) - [null]",
|
"extracted value (%s:%s) -> [null]",
|
||||||
jdbcPosition,
|
jdbcPosition,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode )
|
JdbcTypeNameMapper.getTypeName( typeCode )
|
||||||
);
|
);
|
||||||
|
@ -47,7 +47,7 @@ public interface JdbcExtractingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
JdbcExtractingLogging.LOGGER.tracef(
|
JdbcExtractingLogging.LOGGER.tracef(
|
||||||
"extracted value ([%s] : [%s]) - [%s]",
|
"extracted value (%s:%s) -> [%s]",
|
||||||
callableParamName,
|
callableParamName,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode ),
|
JdbcTypeNameMapper.getTypeName( typeCode ),
|
||||||
value
|
value
|
||||||
|
@ -58,7 +58,7 @@ public interface JdbcExtractingLogging {
|
||||||
assert TRACE_ENABLED;
|
assert TRACE_ENABLED;
|
||||||
|
|
||||||
JdbcExtractingLogging.LOGGER.tracef(
|
JdbcExtractingLogging.LOGGER.tracef(
|
||||||
"extracted value ([%s] : [%s]) - [null]",
|
"extracted value (%s:%s) -> [null]",
|
||||||
callableParamName,
|
callableParamName,
|
||||||
JdbcTypeNameMapper.getTypeName( typeCode )
|
JdbcTypeNameMapper.getTypeName( typeCode )
|
||||||
);
|
);
|
||||||
|
|
|
@ -89,7 +89,7 @@ public final class JdbcTypeNameMapper {
|
||||||
* If a type code is not recognized, it is reported as {@code UNKNOWN(?)} where '?'
|
* If a type code is not recognized, it is reported as {@code UNKNOWN(?)} where '?'
|
||||||
* is replaced with the given type code.
|
* is replaced with the given type code.
|
||||||
*
|
*
|
||||||
* Intended as useful for logging purposes...
|
* @apiNote Useful for logging.
|
||||||
*
|
*
|
||||||
* @param typeCode The type code to find the name for.
|
* @param typeCode The type code to find the name for.
|
||||||
*
|
*
|
||||||
|
|
|
@ -32,7 +32,7 @@ import static org.junit.Assert.assertTrue;
|
||||||
*/
|
*/
|
||||||
@MessageKeyInspection(
|
@MessageKeyInspection(
|
||||||
logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
|
logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
|
||||||
messageKey = "binding parameter ["
|
messageKey = "binding parameter"
|
||||||
)
|
)
|
||||||
@DomainModel( annotatedClasses = OrdinalEnumTypeTest.Person.class )
|
@DomainModel( annotatedClasses = OrdinalEnumTypeTest.Person.class )
|
||||||
@SessionFactory
|
@SessionFactory
|
||||||
|
|
|
@ -29,7 +29,7 @@ import static org.junit.Assert.assertTrue;
|
||||||
|
|
||||||
@MessageKeyInspection(
|
@MessageKeyInspection(
|
||||||
logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
|
logger = @Logger( loggerName = JdbcBindingLogging.NAME ),
|
||||||
messageKey = "binding parameter ["
|
messageKey = "binding parameter"
|
||||||
)
|
)
|
||||||
@DomainModel( annotatedClasses = VarcharEnumTypeTest.Person.class )
|
@DomainModel( annotatedClasses = VarcharEnumTypeTest.Person.class )
|
||||||
@SessionFactory
|
@SessionFactory
|
||||||
|
|
Loading…
Reference in New Issue