Code example for Joinable

Methods: filterFragment

0
	 * Generate a loggable representation of an instance of the value mapped by this type. 
	 * 
	 * @param value The instance to be logged. 
	 * @param factory The session factory. 
	 * @return The loggable string. 
	 * @throws HibernateException Generally some form of resolution problem. 
	 */ 
	public String toLoggableString(Object value, SessionFactoryImplementor factory) { 
		if ( value == null ) { 
			return "null"; 
		} 
		 
		EntityPersister persister = factory.getEntityPersister( associatedEntityName ); 
		StringBuffer result = new StringBuffer().append( associatedEntityName ); 
 
		if ( persister.hasIdentifierProperty() ) { 
			final EntityMode entityMode = persister.getEntityMode(); 
			final Serializable id; 
			if ( entityMode == null ) { 
				if ( isEmbeddedInXML ) {