EntityPersister getVersion - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for EntityPersister getVersion method.

This code example shows how to use the following methods:getIdentifier, getPropertyValues, getVersion, getVersionType, isVersioned
	} 
 
 
	// loading ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 
	public Object get(Class entityClass, Serializable id) { 
		return get( entityClass.getName(), id ); 
	} 
 
	public Object get(Class entityClass, Serializable id, LockMode lockMode) { 
		return get( entityClass.getName(), id, lockMode ); 
	} 
 
	public Object get(String entityName, Serializable id) { 
		return get(entityName, id, LockMode.NONE); 
	} 
 
	public Object get(String entityName, Serializable id, LockMode lockMode) { 
		errorIfClosed(); 
		Object result = getFactory().getEntityPersister(entityName) 
5
CodeRank
This code example shows how to use the following methods:getEntityName, getIdentifier, getPropertyNames, getPropertyTypes, getPropertyValues
 
		if ( entityEntry == null ) { 
            LOG.trace("Entity was not persistent in delete processing"); 
 
			persister = source.getEntityPersister( event.getEntityName(), entity ); 
 
			if ( ForeignKeys.isTransient( persister.getEntityName(), entity, null, source ) ) { 
				deleteTransientEntity( source, entity, event.isCascadeDeleteEnabled(), persister, transientEntities ); 
				// EARLY EXIT!!! 
				return; 
			} 
            performDetachedEntityDeletionCheck(event); 
 
			id = persister.getIdentifier( entity, source ); 
 
			if ( id == null ) { 
				throw new TransientObjectException( 
						"the detached instance passed to delete() had a null identifier" 
				); 
			} 

4
CodeRank
getVersion Method Overview
Get the version number (or timestamp) from the object's version property (or return null if not versioned)
See Code Examples for other Hibernate ORM EntityPersister Methods: