#foreach( $ref in ${entity.getReferences().toList()} )
#if( !$usedSet.contains( $ref ) )
#set( $foreignClass = ${ref.getForeign()} )
#set( $refPropName = ${ref.getPropertyNameInLocal()} )
	    <!-- ${ref.getHibernateDirection()} -->
#if( ! $ref.isHibernateForward() )
		<!--
#end
		<many-to-one name="${refPropName}" 
#foreach( $refEntry in ${ref.toList()} ) 
#set($dummy = ${usedSet.add( $refEntry.getLocal() )})
#set($localCol = $refEntry.getLocal().getOriginal()) 
	        column="${localCol.getName()}" 
#end 
			class="${ref.getReferenceClass().getFqn()}"/>
#if( ! $ref.isHibernateForward() )
		-->
#end
#end
#end
