Code example for JoinedIterable

0
		Iterable<AttributeBinding> iterable;
		if ( superEntityBinding != null ) {
			List<Iterable<AttributeBinding>> iterables = new ArrayList<Iterable<AttributeBinding>>( 2 );
			iterables.add( superEntityBinding.getAttributeBindingClosure() );
			iterables.add( attributeBindings() );
			iterable = new JoinedIterable<AttributeBinding>( iterables );
		} 
		else { 
			iterable = attributeBindings();
		} 
		return iterable;
	} 
 
	/** 
	 * Gets the attribute bindings for this EntityBinding and all of its 
	 * sub-EntityBinding, starting from the root of the hierarchy; includes 
	 * the identifier and attribute bindings defined as part of a join. 
	 * @return 
	 */ 
	public Iterable<AttributeBinding> getSubEntityAttributeBindingClosure() {