#foreach ( $ref in ${entity.getReferreds()} )
#set( $refClass = ${ref.getParent()} )
#set( $refPropName = ${ref.getPropertyNameInReferred()} )
	    <!-- ${ref.getHibernateDirection()} -->
#if( ! $ref.isHibernateBackward() )
		< !--
#end
#if( $ref.isHibernateForward() )
#set( $inverseValue = "true" )
#else
#set( $inverseValue = "false" )
#end
		<set name="${refPropName}Internal" lazy="true" inverse="${inverseValue}" >
			<key #foreach($refEntry in $ref.toList()) column="${refEntry.getLocal().getOriginal().getName()}"  #end />
			<one-to-many class="${refClass.getFqn()}"/>
		</set>
#if( ! $ref.isHibernateBackward() )
		-->
#end
#end
