blob: 958d49158070679e5d26f0af04e6010e222fb97b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated by Teneo on Mon Oct 08 14:56:02 CEST 2007 -->
<hibernate-mapping auto-import="false">
<class entity-name="debian.Deb" abstract="false" lazy="false" discriminator-value="debian.Deb" table="`debian_deb`">
<meta attribute="eclassName">Deb</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="metadata" entity-name="debian.Databin" cascade="all" foreign-key="debian_deb_metadata" lazy="false" insert="true" update="true" unique="true"/>
<one-to-one name="control" entity-name="debian.Archcontrol" foreign-key="debian_deb_control" cascade="all" property-ref="debc" lazy="false"/>
<one-to-one name="data" entity-name="debian.Archdata" foreign-key="debian_deb_data" cascade="all" property-ref="debd" lazy="false"/>
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
</class>
<class entity-name="debian.Databin" abstract="false" lazy="false" discriminator-value="debian.Databin" table="`debian_databin`">
<meta attribute="eclassName">Databin</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<one-to-one name="debpm" entity-name="debian.Deb" foreign-key="debian_databin_debpm" cascade="merge,persist,save-update,lock,refresh" property-ref="metadata" lazy="false"/>
<bag name="blocs" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="debian_databin_blocs">
<column name="`bloc_meta_e_id`" not-null="false" unique="false"/>
</key>
<one-to-many entity-name="debian.Bloc"/>
</bag>
</class>
<class entity-name="debian.Bloc" abstract="false" lazy="false" discriminator-value="debian.Bloc" table="`debian_bloc`">
<meta attribute="eclassName">Bloc</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="meta" entity-name="debian.Databin" foreign-key="debian_bloc_meta" lazy="false" insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`bloc_meta_e_id`"/>
</many-to-one>
<bag name="field" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="debian_bloc_field">
<column name="`field_blocs_e_id`" not-null="false" unique="false"/>
</key>
<one-to-many entity-name="debian.Field"/>
</bag>
</class>
<class entity-name="debian.Field" abstract="true" lazy="false" discriminator-value="debian.Field" table="`debian_field`">
<meta attribute="eclassName">Field</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="val" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`val`"/>
</property>
<property name="type" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`type`"/>
</property>
<many-to-one name="blocs" entity-name="debian.Bloc" foreign-key="debian_field_blocs" lazy="false" insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`field_blocs_e_id`"/>
</many-to-one>
</class>
<class entity-name="debian.Version" abstract="false" lazy="false" discriminator-value="debian.Version" table="`debian_version`">
<meta attribute="eclassName">Version</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
</class>
<class entity-name="debian.PackageName" abstract="false" lazy="false" discriminator-value="debian.PackageName" table="`debian_packagename`">
<meta attribute="eclassName">PackageName</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
</class>
<class entity-name="debian.Dependancy" abstract="false" lazy="false" discriminator-value="debian.Dependancy" table="`debian_dependancy`">
<meta attribute="eclassName">Dependancy</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
</class>
<class entity-name="debian.PackageDescriptions" abstract="false" lazy="false" discriminator-value="debian.PackageDescriptions" table="`debian_packagedescriptions`">
<meta attribute="eclassName">PackageDescriptions</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
</class>
<subclass entity-name="debian.ScriptDescriptions" abstract="false" lazy="false" extends="debian.Field" discriminator-value="debian.ScriptDescriptions">
<meta attribute="eclassName">ScriptDescriptions</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
</subclass>
<class entity-name="debian.Archcontrol" abstract="false" lazy="false" discriminator-value="debian.Archcontrol" table="`debian_archcontrol`">
<meta attribute="eclassName">Archcontrol</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="debc" entity-name="debian.Deb" cascade="merge,persist,save-update,lock,refresh" foreign-key="debian_archcontrol_debc" lazy="false" insert="true" update="true" unique="true"/>
<bag name="scripts" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="debian_archcontrol_scripts">
<column name="`script_archscript_e_id`" not-null="false" unique="false"/>
</key>
<one-to-many entity-name="debian.Script"/>
</bag>
</class>
<class entity-name="debian.Script" abstract="false" lazy="false" discriminator-value="debian.Script" table="`debian_script`">
<meta attribute="eclassName">Script</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="archscript" entity-name="debian.Archcontrol" foreign-key="debian_script_archscript" lazy="false" insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`script_archscript_e_id`"/>
</many-to-one>
<property name="script_name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`script_name`"/>
</property>
<property name="code" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`code`"/>
</property>
</class>
<class entity-name="debian.Archdata" abstract="false" lazy="false" discriminator-value="debian.Archdata" table="`debian_archdata`">
<meta attribute="eclassName">Archdata</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="debd" entity-name="debian.Deb" cascade="merge,persist,save-update,lock,refresh" foreign-key="debian_archdata_debd" lazy="false" insert="true" update="true" unique="true"/>
<bag name="fil" lazy="true" cascade="all,delete-orphan">
<key update="true" foreign-key="debian_archdata_fil">
<column name="`file_data_e_id`" not-null="false" unique="false"/>
</key>
<one-to-many entity-name="debian.File"/>
</bag>
<property name="name" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`name`"/>
</property>
</class>
<class entity-name="debian.File" abstract="false" lazy="false" discriminator-value="debian.File" table="`debian_file`">
<meta attribute="eclassName">File</meta>
<meta attribute="epackage">my.model.of.debian.package</meta>
<id type="long" name="e_id" column="e_id" access="org.eclipse.emf.teneo.hibernate.mapping.identifier.IdentifierPropertyHandler">
<meta attribute="syntheticId">true</meta>
<generator class="native"/>
</id>
<discriminator column="`dtype`" type="string"/>
<version name="e_version" column="e_version" access="org.eclipse.emf.teneo.hibernate.mapping.property.VersionPropertyHandler">
<meta attribute="syntheticVersion">true</meta>
</version>
<many-to-one name="data" entity-name="debian.Archdata" foreign-key="debian_file_data" lazy="false" insert="false" update="false" not-null="false">
<column not-null="false" unique="false" name="`file_data_e_id`"/>
</many-to-one>
<property name="filename" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`filename`"/>
</property>
<property name="location" lazy="false" insert="true" update="true" not-null="true" unique="false" type="java.lang.String">
<column not-null="true" unique="false" name="`location`"/>
</property>
</class>
</hibernate-mapping>