Hibernate ORM OuterJoinLoader - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM OuterJoinLoader class.

This code example shows how to use the following methods:getCollectionOwners, loadEntity
	} 
 
	public Object loadElement(SessionImplementor session, Object key, Object index) 
	throws HibernateException { 
 
		List list = loadEntity( 
				session, 
				key, 
				index, 
				keyType, 
				indexType, 
				persister 
			); 
 
		if ( list.size()==1 ) { 
			return list.get(0); 
		} 
		else if ( list.size()==0 ) { 
			return null; 
		} 

5
CodeRank
This code example shows how to use the following methods:load
 
	/** 
	 * {@inheritDoc} 
	 */ 
	public Object load(Serializable id, Object optionalObject, SessionImplementor session, LockOptions lockOptions) {
		return load( session, id, optionalObject, id, lockOptions );
	} 
 
	protected Object load( 
			SessionImplementor session,
			Object id, 
			Object optionalObject, 
			Serializable optionalId,
			LockOptions lockOptions) {
 
		List list = loadEntity(
				session,
				id, 
				uniqueKeyType,
				optionalObject, 
4
CodeRank
This code example shows how to use the following methods:hasSubselectLoadableCollections
		super( factory, loadQueryInfluencers );
		this.collectionPersister = collectionPersister;
	} 
 
	protected boolean isSubselectLoadingEnabled() { 
		return hasSubselectLoadableCollections(); 
	} 
 
	public void initialize(Serializable id, SessionImplementor session)
	throws HibernateException {
		loadCollection( session, id, getKeyType() );
	} 
 
	protected Type getKeyType() {
		return collectionPersister.getKeyType();
	} 
 
	public String toString() {
		return getClass().getName() + '(' + collectionPersister.getRole() + ')';
	} 
4
CodeRank