Code example for EventSource

Methods: getPersistenceContext

0
	} 
 
	Object processEntity(Object value, EntityType entityType) throws HibernateException {
 
		if (value!=null) { 
			getSession().getPersistenceContext().reassociateIfUninitializedProxy(value);
			// if it is an initialized proxy, let cascade 
			// handle it later on 
		} 
 
		return null; 
	} 
 
	/** 
	 * Has the owner of the collection changed since the collection 
	 * was snapshotted and detached? 
	 */ 
	protected static boolean isOwnerUnchanged( 
			final PersistentCollection snapshot, 
			final CollectionPersister persister, 
Contextual code suggestions in your IDE  Get Codota for Java