java/nekurak.net-ejb/src/conf/Podnik.hbm.xml
changeset 149 8238cdb4113a
parent 127 2b6107e510d8
child 154 bf21a4abea9b
     1.1 --- a/java/nekurak.net-ejb/src/conf/Podnik.hbm.xml	Tue Jun 08 02:37:04 2010 +0200
     1.2 +++ b/java/nekurak.net-ejb/src/conf/Podnik.hbm.xml	Wed Jun 30 00:26:14 2010 +0200
     1.3 @@ -2,31 +2,31 @@
     1.4  <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
     1.5  "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
     1.6  <hibernate-mapping>
     1.7 -    <class name="cz.frantovo.nekurak.dto.Podnik" table="podnik">
     1.8 -	<id name="id" column="id" type="integer">
     1.9 -	    <generator class="sequence">
    1.10 -		<param name="sequence">podnik_seq</param>
    1.11 -	    </generator>
    1.12 -	</id>
    1.13 -	<property name="nazev" column="nazev"/>
    1.14 -	<property name="popis" column="popis"/>
    1.15 -	<property name="url" column="url"/>
    1.16 -	<property name="datum" column="datum"/>
    1.17 -	<property name="ulice" column="ulice"/>
    1.18 -	<property name="cisloPopisne" column="cislo_popisne"/>
    1.19 -	<property name="mesto" column="mesto"/>
    1.20 -	<property name="spravce" column="spravce"/>
    1.21 -	<list name="fotky" table="fotka" lazy="false">
    1.22 -	    <key column="podnik" foreign-key="id"/>
    1.23 -	    <list-index column="poradi"/>
    1.24 -	    <one-to-many class="cz.frantovo.nekurak.dto.Fotka"/>
    1.25 -	</list>
    1.26 -	<set name="komentare" table="komentar" lazy="false">
    1.27 -	    <key column="podnik" foreign-key="id"/>
    1.28 -	    <one-to-many class="cz.frantovo.nekurak.dto.Komentar"/>
    1.29 -	</set>
    1.30 -	<property name="sirka" column="sirka"/>
    1.31 -	<property name="delka" column="delka"/>
    1.32 +	<class name="cz.frantovo.nekurak.dto.Podnik" table="podnik">
    1.33 +		<id name="id" column="id" type="integer">
    1.34 +			<generator class="sequence">
    1.35 +				<param name="sequence">podnik_seq</param>
    1.36 +			</generator>
    1.37 +		</id>
    1.38 +		<property name="nazev" column="nazev"/>
    1.39 +		<property name="popis" column="popis"/>
    1.40 +		<property name="url" column="url"/>
    1.41 +		<property name="datum" column="datum"/>
    1.42 +		<property name="ulice" column="ulice"/>
    1.43 +		<property name="cisloPopisne" column="cislo_popisne"/>
    1.44 +		<property name="mesto" column="mesto"/>
    1.45 +		<property name="spravce" column="spravce"/>
    1.46 +		<list name="fotky" table="fotka" lazy="false">
    1.47 +			<key column="podnik" foreign-key="id"/>
    1.48 +			<list-index column="poradi"/>
    1.49 +			<one-to-many class="cz.frantovo.nekurak.dto.Fotka"/>
    1.50 +		</list>
    1.51 +		<set name="komentare" table="komentar" lazy="false">
    1.52 +			<key column="podnik" foreign-key="id"/>
    1.53 +			<one-to-many class="cz.frantovo.nekurak.dto.Komentar"/>
    1.54 +		</set>
    1.55 +		<property name="sirka" column="sirka"/>
    1.56 +		<property name="delka" column="delka"/>
    1.57  
    1.58 -    </class>
    1.59 +	</class>
    1.60  </hibernate-mapping>
    1.61 \ No newline at end of file