-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: Hibern8IDE caching mapping file?
PostPosted: Fri Apr 02, 2004 4:05 pm 
Beginner
Beginner

Joined: Mon Dec 29, 2003 12:49 pm
Posts: 41
Location: Boston, MA
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&amp;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

_________________
Brian R. Wainwright
Systems Developer
WGBH Educational Foundation

"WGBH Boston informs, inspires, and entertains millions through public broadcasting, the Web, and educational multimedia, and access services for people with disabilities."


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 9:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hard to answer when you don't post the exception - nor what class it is missing....

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 9:25 pm 
Beginner
Beginner

Joined: Mon Dec 29, 2003 12:49 pm
Posts: 41
Location: Boston, MA
ummmmm.... yeah... I suppose you're right max.... (uhg...)

Code:
net.sf.hibernate.MappingException: Error reading resource: object.hbm.xml
        at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:318)
        at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:976)
        at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:928)
        at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:890)
        at net.sf.hibern8ide.Hibern8IDE.reconfig(Hibern8IDE.java:130)
        at net.sf.hibern8ide.Hibern8IDE$3.configurationChanged(Hibern8IDE.java:383)
        at net.sf.hibern8ide.ConfigurationUI$ApplyConfig.actionPerformed(ConfigurationUI.java:245)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
        at java.awt.Component.processMouseEvent(Component.java:5100)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: net.sf.hibernate.MappingException: Associated class not found
        at net.sf.hibernate.cfg.Binder.bindOneToMany(Binder.java:695)
        at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:528)
        at net.sf.hibernate.cfg.Binder$2.create(Binder.java:1407)
        at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1004)
        at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:352)
        at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1229)
        at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
        at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:285)
        at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:315)
        ... 29 more
Caused by: java.lang.ClassNotFoundException: org.wgbh.scape.domain.ProjectAssociation
        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:86)
        at net.sf.hibernate.cfg.Binder.bindOneToMany(Binder.java:690)
        ... 37 more


The class it THINKS shoudl be there is org.wgbh.scape.domain.ProjectAssociation...

Very strange....

_________________
Brian R. Wainwright
Systems Developer
WGBH Educational Foundation

"WGBH Boston informs, inspires, and entertains millions through public broadcasting, the Web, and educational multimedia, and access services for people with disabilities."


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 02, 2004 9:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm....hibern8ide does NOT cache this stuff - it simply just reiterate the list of mapping files you have provided to it.

Are you 100% sure that the old object.hbm.xml is not somewhere on your classpath or something ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 9:20 am 
Beginner
Beginner

Joined: Mon Dec 29, 2003 12:49 pm
Posts: 41
Location: Boston, MA
Thanks for the reply max - it's possible its in the classpath somewhere. That was my first thought as well, but preliminary investigations were inconclusive. I'll have to dig deeper. As long as I know that that's likely the only place to look I think its a good start. I'll let you know how I fare.

Thanks again.

--BW

_________________
Brian R. Wainwright
Systems Developer
WGBH Educational Foundation

"WGBH Boston informs, inspires, and entertains millions through public broadcasting, the Web, and educational multimedia, and access services for people with disabilities."


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 9:50 am 
Beginner
Beginner

Joined: Mon Dec 29, 2003 12:49 pm
Posts: 41
Location: Boston, MA
Okay, I got it working again, but I don't think it was meant to behave this way... There was an old copy of object.hbm.xml in my home directory (the directory from which I was launching Hibern8IDE). I trashed this copy and started up Hibern8IDE and again pointed it to the right version of object.hbm.xml elsewhere in my filesystem, but this time it told me it couldn't find object.hbm.xml. So I copied the current version to my home directory and did it again... and it worked. So apparently my version of Hibern8IDE looks to the directory from which it was launched for the mapping file... BUT could this be because in my hibernate.cfg.xml I have my mapping file mapped relative to the deployment path of hibernate.cfg.xml (which is WEB-INF/classes)? Some other info...

I'm using Mac OS 10.3.3 and Java 1.4.2, Hibernate 2.1.2 and Hibern8IDE v0.9 -

THANKS! --BW

Code:
        <!-- Mapping files -->
        <mapping resource="object.hbm.xml"/>


Here's the stack trace from when it couldn't find the mapping file.

Code:
net.sf.hibernate.MappingException: Resource: object.hbm.xml not found
        at net.sf.hibernate.cfg.Configuration.addResource(Configuration.java:313)
        at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:976)
        at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:928)
        at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:890)
        at net.sf.hibern8ide.Hibern8IDE.reconfig(Hibern8IDE.java:130)
        at net.sf.hibern8ide.Hibern8IDE$3.configurationChanged(Hibern8IDE.java:383)
        at net.sf.hibern8ide.ConfigurationUI$ApplyConfig.actionPerformed(ConfigurationUI.java:245)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
        at java.awt.Component.processMouseEvent(Component.java:5100)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

_________________
Brian R. Wainwright
Systems Developer
WGBH Educational Foundation

"WGBH Boston informs, inspires, and entertains millions through public broadcasting, the Web, and educational multimedia, and access services for people with disabilities."


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 03, 2004 10:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that sounds very reasonable because the naming is relative - so it will look in the current directory first...

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.