Code example for PersistenceContext

Methods: getDatabaseSnapshot

0
	 * {@inheritDoc} 
	 */ 
	public int compare(Object x, Object y) { 
		return 0; //TODO: entities CAN be compared, by PK, fix this! -> only if/when we can extract the id values.... 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public Object deepCopy(Object value, SessionFactoryImplementor factory) { 
		return value; //special case ... this is the leaf of the containment graph, even though not immutable 
	} 
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public Object replace( 
			Object original, 
			Object target, 
			SessionImplementor session,