awips2/edexOsgi/com.raytheon.edex.common/res/ihfs/County.hbm.xml
Matt Nash 82300ccdcf Moving 12.1.1 into ss_sync
Former-commit-id: 580e2938d7 [formerly 66be3bec40] [formerly c83e5ff474 [formerly 2a9569942c48542cf708b6c0b9189146fd954c11]]
Former-commit-id: c83e5ff474
Former-commit-id: 1faae42484
2012-01-19 11:53:12 -06:00

156 lines
4.8 KiB
XML

<?xml version="1.0"?>
<!--
This_software_was_developed_and_/_or_modified_by_Raytheon_Company,
pursuant_to_Contract_DG133W-05-CQ-1067_with_the_US_Government.
U.S._EXPORT_CONTROLLED_TECHNICAL_DATA
This_software_product_contains_export-restricted_data_whose
export/transfer/disclosure_is_restricted_by_U.S._law._Dissemination
to_non-U.S._persons_whether_in_the_United_States_or_abroad_requires
an_export_license_or_other_authorization.
Contractor_Name:________Raytheon_Company
Contractor_Address:_____6825_Pine_Street,_Suite_340
________________________Mail_Stop_B8
________________________Omaha,_NE_68106
________________________402.291.0100
See_the_AWIPS_II_Master_Rights_File_("Master_Rights_File.pdf")_for
further_licensing_information.
-->
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping default-lazy="false">
<!--
Created by the Middlegen Hibernate plugin 2.1
http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->
<class
name="com.raytheon.edex.db.objects.ihfs.County"
table="counties"
>
<composite-id>
<key-property
name="county"
column="county"
type="java.lang.String"
length="20"
/>
<!-- bi-directional many-to-one association to State -->
<key-many-to-one
name="state"
class="com.raytheon.edex.db.objects.ihfs.State"
>
<column name="state" />
</key-many-to-one>
</composite-id>
<property
name="countynum"
type="java.lang.String"
column="countynum"
length="4"
/>
<!-- Associations -->
<!-- bi-directional one-to-many association to Countytransmit -->
<set
name="countytransmits"
lazy="true"
inverse="true"
cascade="all-delete-orphan"
>
<meta attribute="field-description-get">Use add/remove instead.</meta>
<meta attribute="field-description-set">Use add/remove instead.</meta>
<meta attribute="field-description-add">Used to add children to this object.</meta>
<meta attribute="field-description-remove">Used to remove children from this object.</meta>
<key>
<column name="county" />
<column name="state" />
</key>
<one-to-many
class="com.raytheon.edex.db.objects.ihfs.Countytransmit"
/>
</set>
<!-- bi-directional one-to-many association to Countynum -->
<set
name="countynums"
lazy="true"
inverse="true"
cascade="all-delete-orphan"
>
<meta attribute="field-description-get">Use add/remove instead.</meta>
<meta attribute="field-description-set">Use add/remove instead.</meta>
<meta attribute="field-description-add">Used to add children to this object.</meta>
<meta attribute="field-description-remove">Used to remove children from this object.</meta>
<key>
<column name="county" />
<column name="state" />
</key>
<one-to-many
class="com.raytheon.edex.db.objects.ihfs.Countynum"
/>
</set>
<!-- bi-directional one-to-many association to Location -->
<set
name="locations"
lazy="true"
inverse="true"
cascade="all-delete-orphan"
>
<meta attribute="field-description-get">Use add/remove instead.</meta>
<meta attribute="field-description-set">Use add/remove instead.</meta>
<meta attribute="field-description-add">Used to add children to this object.</meta>
<meta attribute="field-description-remove">Used to remove children from this object.</meta>
<key>
<column name="county" />
<column name="state" />
</key>
<one-to-many
class="com.raytheon.edex.db.objects.ihfs.Location"
/>
</set>
<!-- bi-directional many-to-one association to Wfo -->
<many-to-one
name="wfoBySecondaryBack"
class="com.raytheon.edex.db.objects.ihfs.Wfo"
not-null="true"
>
<column name="secondary_back" />
</many-to-one>
<!-- bi-directional many-to-one association to Wfo -->
<many-to-one
name="wfoByWfo"
class="com.raytheon.edex.db.objects.ihfs.Wfo"
not-null="true"
>
<column name="wfo" />
</many-to-one>
<!-- bi-directional many-to-one association to Wfo -->
<many-to-one
name="wfoByPrimaryBack"
class="com.raytheon.edex.db.objects.ihfs.Wfo"
not-null="true"
>
<column name="primary_back" />
</many-to-one>
</class>
</hibernate-mapping>
<!--
-->