Hey all,
Does Hibern8IDE store/cache a copy of the hbm.xml file anywhere? I'm trying to us it with an update hmb.xml file, but I get a ClassNotFoundException because its apparently looking for a class that was in the OLD version of the mapping file, but not in the new one that I'm passing to it.
here's hibernate.cfg.xml
Code:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory name="scape:/hibernate/SessionFactory">
<property name="hibernate.cache.provider_class">net.sf.ehcache.hibernate.Provider</property>
<!-- <property name="connection.datasource">java:comp/env/jdbc/scapeDB</property>-->
<property name="show_sql">true</property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="connection.username">scape</property>
<property name="connection.password">scape</property>
<property name="connection.url">jdbc:mysql://localhost:3306/scape?autoReconnectForPools=true&autoCommit=true</property>
<property name="connection.driver_class">org.gjt.mm.mysql.Driver</property>
<property name="transaction.factory_class">net.sf.hibernate.transaction.JDBCTransactionFactory</property>
<property name="cache.use_query_cache">true</property>
<property name="use_outer_join">false</property>
<property name="hibernate.cglib.use_reflection_optimizer">false</property>
<!--configure connection pool -->
<property name="dbcp.maxActive">100</property>
<property name="dbcp.whenExhaustedAction">1</property>
<property name="dbcp.maxWait">120000</property>
<property name="dbcp.maxIdle">1</property>
<property name="dbcp.minIdle">0</property>
<property name="dbcp.ps.maxActive">10</property>
<property name="dbcp.ps.whenExhaustedAction">1</property>
<property name="dbcp.ps.maxWait">120000</property>
<property name="dbcp.ps.maxIdle">100</property>
<property name="dbcp.validationQuery">select 1</property>
<property name="dbcp.testOnBorrow">true</property>
<property name="dbcp.testOnReturn">false</property>
<!-- Mapping files -->
<mapping resource="object.hbm.xml"/>
</session-factory>
</hibernate-configuration>
My Mapping file:
[code]
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping auto-import="false" package="org.wgbh.scape.domain">
<!--<class name="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl" polymorphism="implicit" table="object">
<meta attribute="class-description"> The UnidentifiedFoundationObject class is the
base-class for all objects within Scape. It is an abstract class. @author
Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.SecureObject</meta>
<meta attribute="implements">org.wgbh.scape.domain.UnidentifiedFoundationObject</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="object_id" name="objectID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<property column="access_privilege" insert="true" name="accessPrivilege"
type="string" update="true"/>-->
<!--<one-to-one name="program" class="org.wgbh.scape.domain.ProgramImpl"/>-->
<!--<one-to-one name="title" class="org.wgbh.scape.domain.TitleImpl"/>-->
<!--<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<set batch-size="30" inverse="true" lazy="true" name="comments" outer-join="false" cascade="all">
<key column="object_reference_id"/>
<one-to-many class="org.wgbh.scape.domain.CommentImpl"/>
</set>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>-->
<class name="org.wgbh.scape.domain.ObjectTypeImpl" table="type_object" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeType</meta>
<meta attribute="implements">org.wgbh.scape.domain.ObjectType</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="object_type_id" name="objectTypeID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl"
column="object_type_parent_id" name="parentObject"/>
<property column="object_type" name="typeName" type="string">
<meta attribute="finder">findByTypeName</meta>
</property>
<property column="description" name="description" type="text"/>
<!--<set batch-size="30" inverse="true" lazy="true" name="objects" outer-join="false">
<key column="object_type_id"/>
<one-to-many class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>
</set>-->
<set batch-size="30" inverse="true" name="childObjects" outer-join="false" lazy="true">
<key column="object_type_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectTypeImpl"/>
</set>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.DeliverablesImpl" table="deliverables" polymorphism="implicit">
<meta attribute="implements">org.wgbh.scape.domain.Deliverables</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<!--<key column="deliverable_id"/>-->
<id column="deliverable_id" name="deliverablesID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one name="programContract"
class="org.wgbh.scape.domain.ProgramUnderContractImpl"
column="program_under_contract_id" outer-join="false"/>
<property name="description" column="description" type="string"/>
<property name="dateDue" column="date_due" type="date">
<meta attribute="finder">findByDueDate</meta>
</property>
<property name="dateSent" column="date_sent" type="date">
<meta attribute="finder">findByDateSent</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.CurrencyImpl" table="currency" polymorphism="implicit">
<meta attribute="implements">org.wgbh.scape.domain.Currency</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="currency_id" name="currencyID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<one-to-one name="country" class="org.wgbh.scape.domain.CountryImpl"/>
<property name="currencyName" column="currency_name" type="string" insert="true" update="true">
<meta attribute="finder">findByCurrencyName</meta>
</property>
<property name="exchangeRate" column="current_exchange_rate" type="double"
not-null="true" update="true" insert="true"/>
<!--<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>-->
</class>
<class name="org.wgbh.scape.domain.PartyAliasImpl" table="party_alias" polymorphism="implicit">
<meta attribute="implements">org.wgbh.scape.domain.PartyAlias</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="alias_id" name="partyAliasID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one name="party" class="org.wgbh.scape.domain.PartyImpl" column="party_id"
insert="true" update="true" outer-join="false"/>
<property name="alias" column="alias_name" insert="true" type="string" update="true">
<meta attribute="finder">findByAlias</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.ObjectAssociationImpl" table="object_association" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ObjectAssociation</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="object_association_id" name="objectAssociationID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<any id-type="string" name="masterObject" cascade="all">
<column name="master_object_class"/>
<column name="master_object_id"/>
</any>
<any id-type="string" name="associatedObject" cascade="all">
<column name="associated_object_class"/>
<column name="associated_object_id"/>
</any>
<!--<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>-->
</class>
<class name="org.wgbh.scape.domain.CommentImpl" table="comments" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Comment</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="comments_id" name="commentsID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<!--<many-to-one class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"
column="object_reference_id" name="objectReference" outer-join="false">
<meta attribute="finder">findByObjectRef</meta>
</many-to-one>-->
<many-to-one class="org.wgbh.scape.domain.PartyImpl" column="party_id" name="party" outer-join="false">
<meta attribute="finder">findByParty</meta>
</many-to-one>
<many-to-one class="org.wgbh.scape.domain.CommentImpl"
column="preceeding_comment_id" name="precedingComment" outer-join="false"/>
<set batch-size="30" inverse="true" lazy="true" name="relatedComments" outer-join="false">
<key column="comment_id"/>
<one-to-many class="org.wgbh.scape.domain.CommentImpl"/>
</set>
<property column="comment" name="comment" type="text">
<meta attribute="finder">findByComment</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.RightsMarketImpl" table="rights_market" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.RightsMarket</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="rights_market_id" name="rightsMarketID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<set inverse="true" lazy="true" name="rights">
<key column="market_id"/>
<one-to-many class="org.wgbh.scape.domain.RightsImpl"/>
</set>
<set inverse="true" lazy="true" name="legacyRights">
<key column="lgy_rights_grid_id"/>
<one-to-many class="org.wgbh.scape.domain.LgyRightsGridImpl"/>
</set>
<property column="rights_market" name="market" type="string">
<meta attribute="finder">findByMarket</meta>
</property>
<property column="description" name="description" type="text"/>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.StateImpl" table="states" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.State</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="state_id" name="stateID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<property column="state_name_long" name="stateName" type="string">
<meta attribute="finder">findByName</meta>
</property>
<property column="state_name_short" name="stateAbbr" type="string">
<meta attribute="finder">findByAbbr</meta>
</property>
<!--<set inverse="true" name="addresses" outer-join="false" table="address">
<key column="state_id"/>
<one-to-many class="org.wgbh.scape.domain.AddressImpl"/>
</set> -->
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.CountryImpl" table="countries" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Country</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="country_id" name="countryID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<property column="country" name="countryName" type="string">
<meta attribute="finder">findByName</meta>
</property>
<property column="country_iso_code" name="countryCode" type="string">
<meta attribute="finder">findByISOCode</meta>
</property>
<!-- <set inverse="true" name="addresses" outer-join="false" table="address">
<key column="country_id"/>
<one-to-many class="org.wgbh.scape.domain.AddressImpl"/>
</set> -->
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.AddressImpl" table="address" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Address</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="address_id" name="addressID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one class="org.wgbh.scape.domain.PartyImpl" column="party_id" insert="true"
name="party" outer-join="false" update="true">
<meta attribute="finder">findByParty</meta>
</many-to-one>
<!--
<many-to-one class="org.wgbh.scape.domain.StateImpl" column="state_id" insert="true"
name="state" outer-join="false" update="true">
<meta attribute="finder">findByState</meta>
</many-to-one>
<many-to-one class="org.wgbh.scape.domain.CountryImpl" column="country_id" insert="true"
name="country" outer-join="false" update="true">
<meta attribute="finder">findByCountry</meta>
</many-to-one>-->
<!-- The Address Fields should be incorporated into their own finder method. -->
<property name="state" column="state" insert="true" type="string" update="true"/>
<property name="country" column="country" insert="true" type="string" update="true"/>
<property column="address_1" insert="true" name="addressOne" type="string" update="true"/>
<property column="address_2" insert="true" name="addressTwo" type="string" update="true"/>
<property column="address_3" insert="true" name="addressThree" type="string" update="true"/>
<property column="city" insert="true" name="city" type="string" update="true">
<meta attribute="finder">findByCity</meta>
</property>
<property column="province" insert="true" name="province" type="string" update="true">
<meta attribute="finder">findByProvince</meta>
</property>
<property column="zip" insert="true" name="zipCode" type="string" update="true">
<meta attribute="finder">findByZipCode</meta>
</property>
<property column="zip_4" insert="true" name="zip4" type="integer" update="true"/>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.EmailImpl" table="email" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Email</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="email_id" name="emailID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one class="org.wgbh.scape.domain.PartyImpl" column="party_id" insert="true"
name="party" outer-join="false" update="true">
<meta attribute="finder">findByParty</meta>
</many-to-one>
<property column="email" insert="true" name="emailAddress" type="string" update="true">
<meta attribute="finder">findByAddress</meta>
</property>
</class>
<class name="org.wgbh.scape.domain.PhoneImpl" table="phone" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Phone</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="phone_id" name="phoneID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one class="org.wgbh.scape.domain.PartyImpl" column="party_id" insert="true"
name="party" outer-join="false" update="true">
<meta attribute="finder">findByParty</meta>
</many-to-one>
<property column="phone_country_code" insert="true" name="countryCode"
type="integer" update="true"/>
<property column="phone_area_code" insert="true" name="areaCode" type="string" update="true"/>
<property column="phone_number" insert="true" name="phoneNumber" type="string" update="true">
<meta attribute="finder">findByNumber</meta>
</property>
<property column="phone_extension" insert="true" name="extension" type="string" update="true"/>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<class name="org.wgbh.scape.domain.PartyImpl" table="party" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Party</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="party_id" name="partyID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<discriminator column="object_type_id" type="string"/>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id"
name="objectType" insert="false" update="false"/>
<set inverse="true" name="addresses" outer-join="false" table="address" cascade="all">
<key column="party_id"/>
<one-to-many class="org.wgbh.scape.domain.AddressImpl"/>
</set>
<set inverse="true" name="emails" outer-join="false" table="email" cascade="all">
<key column="party_id"/>
<one-to-many class="org.wgbh.scape.domain.EmailImpl"/>
</set>
<set inverse="true" name="phones" outer-join="false" table="phone" cascade="all">
<key column="party_id"/>
<one-to-many class="org.wgbh.scape.domain.PhoneImpl"/>
</set>
<set inverse="true" name="aliases" outer-join="false" table="party_alias" cascade="all">
<key column="party_id"/>
<one-to-many class="org.wgbh.scape.domain.PartyAliasImpl"/>
</set>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="save-update">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="save-update">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<subclass name="org.wgbh.scape.domain.HumanImpl" discriminator-value="OT4">
<meta attribute="class-description"> @author Brian R. Wainwright @version
1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Human</meta>
<property column="ssn" insert="true" name="socialSecurityNumber"
type="string" update="true">
<meta attribute="finder">findBySSNumber</meta>
</property>
<property column="name_human_first" insert="true" name="firstName"
type="string" update="true">
<meta attribute="finder">findByFirstName</meta>
</property>
<property column="name_human_middle" insert="true" name="middleName"
type="string" update="true">
<meta attribute="finder">findByMiddleName</meta>
</property>
<property column="name_human_last" insert="true" name="lastName"
type="string" update="true">
<meta attribute="field-description">The last name of the person.</meta>
<meta attribute="finder">findByLastName</meta>
</property>
<property column="name_human_prefix" insert="true" name="namePrefix"
type="string" update="true"/>
<property column="name_human_suffix" insert="true" name="nameSuffix"
type="string" update="true"/>
<property column="description" insert="true" name="description"
type="string" update="true"/>
<property column="job_title" insert="true" name="title" type="string" update="true"/>
<property column="holiday_card" insert="true" name="holidayCard"
type="string" update="true"/>
<subclass name="org.wgbh.scape.domain.UserImpl" discriminator-value="OT7">
<meta attribute="class-description"> A Users object represents a
user of the application identified by a username and a
password. @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.User</meta>
<property column="username" insert="true" name="username"
type="string" update="true">
<meta attribute="finder">findByUsername</meta>
</property>
<property column="password" insert="true" name="password"
type="string" update="true">
<meta attribute="finder">findByPassword</meta>
</property>
<property column="password_expires" insert="true"
name="passwordExpires" type="date" update="true"/>
<property column="password_retention" insert="true"
name="passwordRetention" type="integer" update="true"/>
<property column="password_hint" insert="true" name="passwordHint"
type="string" update="true"/>
<property column="password_answer" insert="true"
name="passwordAnswer" type="string" update="true">
<meta attribute="finder">findByPwdAnswer</meta>
</property>
</subclass>
</subclass>
<subclass name="org.wgbh.scape.domain.OrganizationImpl" discriminator-value="OT5">
<meta attribute="class-description"> @author Brian R. Wainwright @version
1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Organization</meta>
<property column="ein" insert="true" name="employerIDNumber" type="string" update="true">
<meta attribute="finder">findByEIN</meta>
</property>
<property column="organization_name" insert="true" name="name" type="string" update="true">
<meta attribute="finder">findByName</meta>
</property>
<property column="description" insert="true" name="description"
type="string" update="true"/>
</subclass>
<subclass name="org.wgbh.scape.domain.GroupImpl" discriminator-value="OT6">
<meta attribute="class-description"> @author Brian R. Wainwright @version
1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Group</meta>
<property column="group_name" insert="true" name="name" type="string" update="true">
<meta attribute="finder">findByName</meta>
</property>
<property column="description" insert="true" name="description" type="text" update="true"/>
</subclass>
</class>
<class name="org.wgbh.scape.domain.ContractImpl" table="contract" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.Contract</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="contract_id" name="contractID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<property column="knumber" insert="true" name="knumber" type="string" update="true">
<meta attribute="finder">findByKNumber</meta>
</property>
<property column="date_of_execution" name="executionDate" type="date">
<meta attribute="finder">findByExecutionDate</meta>
</property>
<property column="amount" name="amount" type="float">
<meta attribute="finder">findByAmount</meta>
</property>
<property column="licensee_contract_number" name="licenseeContractNumber" type="string">
<meta attribute="finder">findByLicenseContractNumber</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<!-- 1 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.ScreenerRequestImpl" table="screener_request" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ScreenerReqeust</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="screener_request_id" name="screenerRequestID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<set batch-size="30" inverse="true" lazy="true" name="programs" outer-join="false"
table="screener_program_requests" cascade="all">
<key column="screener_request_id"/>
<many-to-many class="org.wgbh.scape.domain.ProgramImpl" column="program_id"/>
</set>
<property name="dateRequested" type="date" column="date_requested"/>
<property name="dateShipped" type="date" column="date_shipped"/>
<property name="clientStatus" type="string" column="client_status"/>
<property name="units" type="integer" column="units"/>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<!-- 2 this is here just to facilitate search -->
<!-- 3 this is here just to facilitate search -->
<!-- 4 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.DateOfAirImpl" table="date_of_air" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.DateOfAir</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="date_of_air_id" name="dateOfAirID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one class="org.wgbh.scape.domain.ProgramImpl" column="program_id" name="program"/>
<property column="date_of_air" type="date" name="dateOfAir"/>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<!-- 5 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.ProgramTapeAudioImpl" table="program_tape_audio" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ProgramTapeAudio</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="program_tape_audioid" name="programTapeAudioID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one class="org.wgbh.scape.domain.ProgramTapeImpl" column="program_tape_id" name="programTape"/>
<property column="audio_channel" name="audioChannel" type="string">
<meta attribute="finder">findByaudioChannel</meta>
</property>
<property column="audio_channel_context" name="audioChannelContext" type="string">
<meta attribute="finder">findByaudioChannelContext</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<!-- 6 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.ProgramTapeImpl" table="program_tape" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ProgramTape</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="program_tape_id" name="programTapeID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<set batch-size="30" inverse="true" lazy="true" name="programTapeAudio" outer-join="false">
<key column="program_tape_id"/>
<one-to-many class="org.wgbh.scape.domain.ProgramTapeAudioImpl"/>
</set>
<set batch-size="30" inverse="true" lazy="true"
name="programTapeDuplicationRequests" outer-join="false">
<key column="program_tape_duplication_request_id"/>
<one-to-many class="org.wgbh.scape.domain.ProgramTapeDuplicationRequestImpl"/>
</set>
<property column="broadcast_standard" name="broadcastStandard" type="string">
<meta attribute="finder">findBybroadcastStandard</meta>
</property>
<property column="tape_format" name="tapeFormat" type="string">
<meta attribute="finder">findBytapeFormat</meta>
</property>
<property column="aspect_ratio" name="aspectRation" type="string">
<meta attribute="finder">findByaspectRatio</meta>
</property>
<property column="global_vision_id_number" name="globalVisionIdNumber" type="string">
<meta attribute="finder">findByglobalVisionIdNumber</meta>
</property>
<property column="running_time" name="runningTime" type="string">
<meta attribute="finder">findByrunningTime</meta>
</property>
<property column="units" name="units" type="integer">
<meta attribute="finder">findByunits</meta>
</property>
<property column="unit_length" name="unitLength" type="string">
<meta attribute="finder">findByunitLength</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<!-- 7 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.ProgramTapeDuplicationRequestImpl"
table="program_tape_duplication_request" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ProgramTapeDuplicationRequestImpl</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="program_tape_duplication_request_id" name="progrTapeDupeRequID"
type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<many-to-one class="org.wgbh.scape.domain.ProgramTapeImpl" column="program_tape_id" name="programTape"/>
<set batch-size="30" inverse="true" lazy="true" name="lineItems" outer-join="false">
<key column="request_id"/>
<one-to-many class="org.wgbh.scape.domain.ProgramTapeDuplicationRequestLineItemImpl"/>
</set>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<property column="accout_category" name="accountCategory" type="string">
<meta attribute="finder">findByaccountCategory</meta>
</property>
<property column="account_unit" name="accountUnit" type="string">
<meta attribute="finder">findByaccountUnit</meta>
</property>
<property column="order_date" name="orderDate" type="date">
<meta attribute="finder">findByorderDate</meta>
</property>
<property column="master_tape_avail_date" name="masterTapeAvailDate" type="date">
<meta attribute="finder">findBymasterTapeAvailDate</meta>
</property>
<property column="delivery_deadline" name="deliveryDeadline" type="date">
<meta attribute="finder">findBydeliveryDeadline</meta>
</property>
<property column="special_instructions" name="specialInstructions" type="text">
<meta attribute="finder">findByspecialInstructions</meta>
</property>
<property column="source_eval_request" name="sourceEvalRequest" type="string">
<meta attribute="finder">findBysourceEvalRequest</meta>
</property>
<property column="source_time_code_method" name="sourceTimeCodeMethod" type="string">
<meta attribute="finder">findBysourceTimeCodeMethod</meta>
</property>
<property column="client_spervision" name="clientSupervision" type="string">
<meta attribute="finder">findByclientSupervision</meta>
</property>
<property column="caption_center_encoding" name="captionCenterEncoding" type="string">
<meta attribute="finder">findBycaptionCenterEncoding</meta>
</property>
<property column="video_xfer_shipping_info" name="videoXferShippingInfo" type="text">
<meta attribute="finder">findByvideoXferShippingInfo</meta>
</property>
<property column="video_xfer_standards_conversion" name="videoXferStandardConv" type="text">
<meta attribute="finder">findByvideoXferStandardConv</meta>
</property>
<property column="tape_label_face" name="tapeLabelFace" type="string">
<meta attribute="finder">findBytapeLabelFace</meta>
</property>
<property column="tape_label_spine" name="tapeLabelSpine" type="string">
<meta attribute="finder">findBytapeLabelSpine</meta>
</property>
<property column="tape_pkg_instructions" name="tapePkgInstructions" type="text">
<meta attribute="finder">findBytapePkgInstructions</meta>
</property>
<property column="tape_spcl_instructions" name="tapeSpclInstructions" type="text">
<meta attribute="finder">findBytapeSpclInstructions</meta>
</property>
<property column="global_vision_ship_date" name="globalVisionShipDate" type="date">
<meta attribute="finder">findByglobalVisionShipDate</meta>
</property>
<property column="billing_account_number" name="billingAccountNumber" type="string">
<meta attribute="finder">findBybillingAccountNumber</meta>
</property>
<property column="po_number" name="poNumber" type="string">
<meta attribute="finder">findBypoNumber</meta>
</property>
<property column="shipping_reference" name="shippingReference" type="text">
<meta attribute="finder">findByshippingReference</meta>
</property>
</class>
<!-- 8 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.ProgramTapeDuplicationRequestLineItemImpl"
table="program_tape_duplication_request_line_item" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.ProgramTapeDuplicationRequestLineItem</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="program_tape_duplication_request_line_item_id"
name="progrTapeDupeRequLineItemID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.ObjectTypeImpl" column="object_type_id" name="objectType"/>
<!-- Check column in other table -->
<many-to-one class="org.wgbh.scape.domain.ProgramTapeDuplicationRequestImpl"
column="request_id" name="programTapeDuplicationRequest"/>
<property column="source_tape_id" name="sourceTapeId" type="string">
<meta attribute="finder">findBysourceTapeId</meta>
</property>
<property column="source_tape_qty" name="sourceTapeQty" type="integer">
<meta attribute="finder">findBysourceTapeQty</meta>
</property>
<property column="destination_tape_id" name="destinationTapeId" type="string">
<meta attribute="finder">findBydestionationTapeId</meta>
</property>
<property column="destination_tape_qty" name="destinationTapeQty" type="integer">
<meta attribute="finder">findBydestinationTapeQty</meta>
</property>
<bag name="associatedObjects" batch-size="100" lazy="false" outer-join="false" cascade="all">
<key column="master_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
<bag name="associations" batch-size="100" lazy="true" outer-join="false" cascade="all">
<key column="associated_object_id"/>
<one-to-many class="org.wgbh.scape.domain.ObjectAssociationImpl"/>
</bag>
</class>
<!-- 9 this is here just to facilitate search -->
<class name="org.wgbh.scape.domain.LgyRightsGridImpl" table="lgy_rights_grid" polymorphism="implicit">
<meta attribute="class-description"> @author Brian R. Wainwright @version 1.0 </meta>
<meta attribute="implements">org.wgbh.scape.domain.LgyRightsGrid</meta>
<meta attribute="implements">org.wgbh.scape.domain.ScapeObject</meta>
<id column="lgy_rights_grid_id" name="lgyRightsGridID" type="string" unsaved-value="null">
<generator class="uuid.hex"/>
</id>
<!--<one-to-one name="ufo" class="org.wgbh.scape.domain.UnidentifiedFoundationObjectImpl"/>-->
<many-to-one class="org.wgbh.scape.domain.O