Issue Type: Improvement Improvement
Affects Versions: 4.1.3
Assignee: Unassigned
Components: core
Created: 05/Jun/13 9:14 AM
Description:

We having TRACE log turned on for BasicBinder to print SQL parameters in log file. Implementation of AbstractTypeDescriptor prints object.toString() value in log.

The issue persists for date parameters. Date.toString() causes initializing of additional fields inside Date which significantly increases Object size.

For instance we have cache-able object containing two Date fields inside. Usual size of object is about 300 bytes. After we use those dates as SQL parameters object size increased to > 2kB.

Would be great if DateTypeDescriptor had overridden implementation of extractLoggableRepresentation method to use some date formatter instead of Date.toString().

Thank you

Project: Hibernate ORM
Priority: Minor Minor
Reporter: Andrey Markavtsov
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira