<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin
http://boss.bekk.no/boss/middlegen/
http://hibernate.sourceforge.net/
-->
<class
name="com.smiths.aerospace.forecasting.bo.Aircraft"
table="aircraft"
>
<meta attribute="class-description" inherit="false">
@hibernate.class
table="aircraft"
</meta>
<id
name="aircraftId"
type="java.lang.Integer"
column="AIRCRAFT_ID"
>
<meta attribute="field-description">
@hibernate.id
generator-class="assigned"
type="java.lang.Integer"
column="AIRCRAFT_ID"
</meta>
<generator class="assigned" />
</id>
<property
name="platform"
type="java.lang.String"
column="PLATFORM"
not-null="true"
length="30"
>
<meta attribute="field-description">
@hibernate.property
column="PLATFORM"
length="30"
not-null="true"
</meta>
</property>
<property
name="aircraftDescription"
type="java.lang.String"
column="AIRCRAFT_DESCRIPTION"
not-null="true"
length="250"
>
<meta attribute="field-description">
@hibernate.property
column="AIRCRAFT_DESCRIPTION"
length="250"
not-null="true"
</meta>
</property>
<!-- associations -->
<!-- bi-directional one-to-many association to FitList -->
<set
name="fitLists"
lazy="true"
inverse="true"
>
<meta attribute="field-description">
@hibernate.set
lazy="true"
inverse="true"
@hibernate.collection-key
column="AIRCRAFT_ID"
@hibernate.collection-one-to-many
class="com.smiths.aerospace.forecasting.bo.FitList"
</meta>
<key>
<column name="AIRCRAFT_ID" />
</key>
<one-to-many
class="com.smiths.aerospace.forecasting.bo.FitList"
/>
</set>
<!-- bi-directional one-to-many association to AircraftInventory -->
<set
name="aircraftInventories"
lazy="true"
inverse="true"
>
<meta attribute="field-description">
@hibernate.set
lazy="true"
inverse="true"
@hibernate.collection-key
column="AIRCRAFT_ID"
@hibernate.collection-one-to-many
class="com.smiths.aerospace.forecasting.bo.AircraftInventory"
</meta>
<key>
<column name="AIRCRAFT_ID" />
</key>
<one-to-many
class="com.smiths.aerospace.forecasting.bo.AircraftInventory"
/>
</set>
<!-- bi-directional many-to-one association to AcManufacturer -->
<many-to-one
name="acManufacturer"
class="com.smiths.aerospace.forecasting.bo.AcManufacturer"
not-null="true"
>
<meta attribute="field-description">
@hibernate.many-to-one
not-null="true"
@hibernate.column name="AC_MANUFACTURER_ID"
</meta>
<column name="AC_MANUFACTURER_ID" />
</many-to-one>
<!-- bi-directional many-to-one association to AircraftSery -->
<many-to-one
name="aircraftSery"
class="com.smiths.aerospace.forecasting.bo.AircraftSery"
not-null="true"
>
<meta attribute="field-description">
@hibernate.many-to-one
not-null="true"
@hibernate.column name="SERIES_ID"
</meta>
<column name="SERIES_ID" />
</many-to-one>
</class>
</hibernate-mapping>