Code example for SessionImplementor

Methods: generateEntityKeygetFactory

0
	public void reassociateProxy(Object value, Serializable id) throws MappingException { 
		if ( value instanceof ElementWrapper ) { 
			value = ( (ElementWrapper) value ).getElement(); 
		} 
 
		if ( value instanceof HibernateProxy ) { 
            LOG.debugf("Setting proxy identifier: %s", id); 
			HibernateProxy proxy = (HibernateProxy) value; 
			LazyInitializer li = proxy.getHibernateLazyInitializer(); 
			li.setIdentifier(id); 
			reassociateProxy(li, proxy); 
		} 
	} 
 
	/** 
	 * Associate a proxy that was instantiated by another session with this session 
	 * 
	 * @param li The proxy initializer. 
	 * @param proxy The proxy to reassociate. 
	 */ 
Contextual code suggestions in your IDE  Get Codota for Java