author | František Kučera <franta-hg@frantovo.cz> |
Tue Jun 08 10:42:58 2010 +0200 (2010-06-08) | |
changeset 131 | 0d1cba59734b |
parent 100 | 01be78803f73 |
child 145 | 0efefbf5f8b6 |
permissions | -rw-r--r-- |
franta-hg@28 | 1 |
<?xml version="1.0"?> |
franta-hg@28 | 2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
franta-hg@28 | 3 |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
franta-hg@28 | 4 |
<hibernate-mapping> |
franta-hg@28 | 5 |
<class name="cz.frantovo.nekurak.dto.Podnik" table="podnik"> |
franta-hg@40 | 6 |
<id name="id" column="id" type="integer"> |
franta-hg@40 | 7 |
<generator class="sequence"> |
franta-hg@40 | 8 |
<param name="sequence">podnik_seq</param> |
franta-hg@40 | 9 |
</generator> |
franta-hg@40 | 10 |
</id> |
franta-hg@28 | 11 |
<property name="nazev" column="nazev"/> |
franta-hg@39 | 12 |
<property name="popis" column="popis"/> |
franta-hg@39 | 13 |
<property name="url" column="url"/> |
franta-hg@39 | 14 |
<property name="datum" column="datum"/> |
franta-hg@39 | 15 |
<property name="ulice" column="ulice"/> |
franta-hg@39 | 16 |
<property name="cisloPopisne" column="cislo_popisne"/> |
franta-hg@39 | 17 |
<property name="mesto" column="mesto"/> |
franta-hg@63 | 18 |
<property name="spravce" column="spravce"/> |
franta-hg@72 | 19 |
<list name="fotky" table="fotka" lazy="false"> |
franta-hg@67 | 20 |
<key column="podnik" foreign-key="id"/> |
franta-hg@72 | 21 |
<list-index column="poradi"/> |
franta-hg@67 | 22 |
<one-to-many class="cz.frantovo.nekurak.dto.Fotka"/> |
franta-hg@72 | 23 |
</list> |
franta-hg@127 | 24 |
<set name="komentare" table="komentar" lazy="false"> |
franta-hg@127 | 25 |
<key column="podnik" foreign-key="id"/> |
franta-hg@127 | 26 |
<one-to-many class="cz.frantovo.nekurak.dto.Komentar"/> |
franta-hg@127 | 27 |
</set> |
franta-hg@100 | 28 |
<property name="sirka" column="sirka"/> |
franta-hg@100 | 29 |
<property name="delka" column="delka"/> |
franta-hg@67 | 30 |
|
franta-hg@28 | 31 |
</class> |
franta-hg@28 | 32 |
</hibernate-mapping> |