[68] | 1 | <?xml version="1.0"?> |
---|
| 2 | <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
---|
| 3 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
---|
| 4 | <!-- Generated 1 Juin 2007 15:03:29 by Hibernate Tools 3.2.0.beta7 --> |
---|
| 5 | <hibernate-mapping> |
---|
| 6 | <class name="org.medias.eccad.persistance.hibernate.domaine.Produit" table="produit" schema="public"> |
---|
| 7 | <id name="idProduit" type="int"> |
---|
| 8 | <column name="id_produit" /> |
---|
| 9 | <generator class="assigned" /> |
---|
| 10 | </id> |
---|
| 11 | <many-to-one name="domaine" class="org.medias.eccad.persistance.hibernate.domaine.Domaine" fetch="select"> |
---|
| 12 | <column name="id_domaine" /> |
---|
| 13 | </many-to-one> |
---|
| 14 | <many-to-one name="typeproduit" class="org.medias.eccad.persistance.hibernate.domaine.Typeproduit" fetch="select"> |
---|
| 15 | <column name="id_typeproduit" /> |
---|
| 16 | </many-to-one> |
---|
| 17 | <many-to-one name="produitorig" class="org.medias.eccad.persistance.hibernate.domaine.Produitorig" fetch="select"> |
---|
| 18 | <column name="id_produitorig" /> |
---|
| 19 | </many-to-one> |
---|
| 20 | <many-to-one name="metadata" class="org.medias.eccad.persistance.hibernate.domaine.Metadata" fetch="select"> |
---|
| 21 | <column name="id_metadata" /> |
---|
| 22 | </many-to-one> |
---|
| 23 | <property name="titleProduit" type="string"> |
---|
| 24 | <column name="title_produit" length="128" unique="true" /> |
---|
| 25 | </property> |
---|
| 26 | <property name="descriptionProduit" type="string"> |
---|
| 27 | <column name="description_produit" /> |
---|
| 28 | </property> |
---|
| 29 | <property name="begintimeProduit" type="date"> |
---|
| 30 | <column name="begintime_produit" length="4" /> |
---|
| 31 | </property> |
---|
| 32 | <property name="endtimeProduit" type="date"> |
---|
| 33 | <column name="endtime_produit" length="4" /> |
---|
| 34 | </property> |
---|
| 35 | <property name="temporalresProduit" type="string"> |
---|
| 36 | <column name="temporalres_produit" length="128" /> |
---|
| 37 | </property> |
---|
| 38 | <property name="spatialresProduit" type="string"> |
---|
| 39 | <column name="spatialres_produit" length="128" /> |
---|
| 40 | </property> |
---|
| 41 | <property name="textcitationProduit" type="string"> |
---|
| 42 | <column name="textcitation_produit" /> |
---|
| 43 | </property> |
---|
| 44 | <property name="informpubProduit" type="string"> |
---|
| 45 | <column name="informpub_produit" /> |
---|
| 46 | </property> |
---|
| 47 | <property name="annotationcitationProduit" type="string"> |
---|
| 48 | <column name="annotationcitation_produit" /> |
---|
| 49 | </property> |
---|
| 50 | <property name="pubdateProduit" type="string"> |
---|
| 51 | <column name="pubdate_produit" length="128" /> |
---|
| 52 | </property> |
---|
| 53 | <property name="editionProduit" type="string"> |
---|
| 54 | <column name="edition_produit" length="128" /> |
---|
| 55 | </property> |
---|
| 56 | <property name="onlinkProduit" type="string"> |
---|
| 57 | <column name="onlink_produit" length="128" /> |
---|
| 58 | </property> |
---|
| 59 | <property name="purposeProduit" type="string"> |
---|
| 60 | <column name="purpose_produit" /> |
---|
| 61 | </property> |
---|
| 62 | <property name="currentProduit" type="string"> |
---|
| 63 | <column name="current_produit" /> |
---|
| 64 | </property> |
---|
| 65 | <property name="progressProduit" type="string"> |
---|
| 66 | <column name="progress_produit" /> |
---|
| 67 | </property> |
---|
| 68 | <property name="updateProduit" type="string"> |
---|
| 69 | <column name="update_produit" /> |
---|
| 70 | </property> |
---|
| 71 | <property name="themektProduit" type="string"> |
---|
| 72 | <column name="themekt_produit" /> |
---|
| 73 | </property> |
---|
| 74 | <property name="themekeyProduit" type="string"> |
---|
| 75 | <column name="themekey_produit" /> |
---|
| 76 | </property> |
---|
| 77 | <property name="placektProduit" type="string"> |
---|
| 78 | <column name="placekt_produit" /> |
---|
| 79 | </property> |
---|
| 80 | <property name="accconstProduit" type="string"> |
---|
| 81 | <column name="accconst_produit" /> |
---|
| 82 | </property> |
---|
| 83 | <property name="useconstProduit" type="string"> |
---|
| 84 | <column name="useconst_produit" /> |
---|
| 85 | </property> |
---|
| 86 | <property name="headerProduit" type="string"> |
---|
| 87 | <column name="header_produit" /> |
---|
| 88 | </property> |
---|
| 89 | <property name="versionProduit" type="string"> |
---|
| 90 | <column name="version_produit" /> |
---|
| 91 | </property> |
---|
| 92 | <set name="concernes" inverse="true"> |
---|
| 93 | <key> |
---|
| 94 | <column name="id_produit" not-null="true" /> |
---|
| 95 | </key> |
---|
| 96 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Concerne" /> |
---|
| 97 | </set> |
---|
| 98 | <set name="fichiers" inverse="true"> |
---|
| 99 | <key> |
---|
| 100 | <column name="id_produit" not-null="true" /> |
---|
| 101 | </key> |
---|
| 102 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Fichier" /> |
---|
| 103 | </set> |
---|
| 104 | <set name="fournits" inverse="true"> |
---|
| 105 | <key> |
---|
| 106 | <column name="id_produit" not-null="true" /> |
---|
| 107 | </key> |
---|
| 108 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Fournit" /> |
---|
| 109 | </set> |
---|
| 110 | <set name="grilles" inverse="true"> |
---|
| 111 | <key> |
---|
| 112 | <column name="id_produit" /> |
---|
| 113 | </key> |
---|
| 114 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Grille" /> |
---|
| 115 | </set> |
---|
| 116 | <set name="requetes" inverse="true"> |
---|
| 117 | <key> |
---|
| 118 | <column name="id_produit" not-null="true" /> |
---|
| 119 | </key> |
---|
| 120 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Requete" /> |
---|
| 121 | </set> |
---|
| 122 | <set name="contacts" inverse="true"> |
---|
| 123 | <key> |
---|
| 124 | <column name="id_produit" not-null="true" /> |
---|
| 125 | </key> |
---|
| 126 | <one-to-many class="org.medias.eccad.persistance.hibernate.domaine.Contact" /> |
---|
| 127 | </set> |
---|
| 128 | </class> |
---|
| 129 | </hibernate-mapping> |
---|