mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-26 05:14:57 +00:00
HHH-11173 : Change CollectionType#renderLoggableString to return '<uninitialized>' when collection is uninitialized
This commit is contained in:
parent
4d6cda1548
commit
122f00f30c
@ -199,6 +199,10 @@ public String toLoggableString(Object value, SessionFactoryImplementor factory)
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected String renderLoggableString(Object value, SessionFactoryImplementor factory) throws HibernateException {
|
protected String renderLoggableString(Object value, SessionFactoryImplementor factory) throws HibernateException {
|
||||||
|
if ( !Hibernate.isInitialized( value ) ) {
|
||||||
|
return "<uninitialized>";
|
||||||
|
}
|
||||||
|
|
||||||
final List<String> list = new ArrayList<String>();
|
final List<String> list = new ArrayList<String>();
|
||||||
Type elemType = getElementType( factory );
|
Type elemType = getElementType( factory );
|
||||||
Iterator itr = getElementsIterator( value );
|
Iterator itr = getElementsIterator( value );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user