Code example for SessionImplementor

Methods: generateEntityKey

0
			return snapshot; 
		} 
	} 
 
	public Object[] getNaturalIdSnapshot(Serializable id, EntityPersister persister) 
	throws HibernateException { 
		if ( !persister.hasNaturalIdentifier() ) { 
			return null; 
		} 
 
		// if the natural-id is marked as non-mutable, it is not retrieved during a 
		// normal database-snapshot operation... 
		int[] props = persister.getNaturalIdentifierProperties(); 
		boolean[] updateable = persister.getPropertyUpdateability(); 
		boolean allNatualIdPropsAreUpdateable = true; 
		for ( int i = 0; i < props.length; i++ ) { 
			if ( !updateable[ props[i] ] ) { 
				allNatualIdPropsAreUpdateable = false; 
				break; 
			}