java/nekurak.net-ejb/src/conf/Podnik.hbm.xml
changeset 72 81c64c582a26
parent 69 4964cf581166
child 100 01be78803f73
     1.1 --- a/java/nekurak.net-ejb/src/conf/Podnik.hbm.xml	Tue Mar 16 14:13:14 2010 +0100
     1.2 +++ b/java/nekurak.net-ejb/src/conf/Podnik.hbm.xml	Tue Mar 16 14:33:05 2010 +0100
     1.3 @@ -16,10 +16,11 @@
     1.4  	<property name="cisloPopisne" column="cislo_popisne"/>
     1.5  	<property name="mesto" column="mesto"/>
     1.6  	<property name="spravce" column="spravce"/>
     1.7 -	<set name="fotky" table="fotka" lazy="false">
     1.8 +	<list name="fotky" table="fotka" lazy="false">
     1.9  	    <key column="podnik" foreign-key="id"/>
    1.10 +	    <list-index column="poradi"/>
    1.11  	    <one-to-many class="cz.frantovo.nekurak.dto.Fotka"/>
    1.12 -	</set>
    1.13 +	</list>
    1.14  
    1.15      </class>
    1.16  </hibernate-mapping>
    1.17 \ No newline at end of file