I am rolling a new baseline and have picked up Sring 2.5.6 along with it.
When I start my webapp, it loads all of the hibernate files to map all of my classes. All of a sudden, hibernate hangs during the class load. I can't seem to figure out why.
I have gone through one at a time and pulled mapping files out to try to figure out which of the classes I'm having an issue with. It turns out to be the one to many relationship with another class. Here is the one-to-many:
And here is the definition of the other class:Code:<set name="pools"> <key column="PART_NO"/> <one-to-many class="com.acs.gs.juror.bo.PoolInfo"/> </set>
I can't imagine why this is causing a problem. It has worked before for me in other database dialects and with other versions of Spring.Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="com.acs.gs.juror.bo.PoolInfo" table="POOL"> <composite-id class="com.acs.gs.juror.bo.PoolInfoKey" mapped="true"> <key-property name="poolNumber" column="POOL_NO"/> <key-property name="participantNumber" column="PART_NO"/> </composite-id> <property name="active" column="IS_ACTIVE"/> <!-- <property name="sequenceNumber" column="POOL_SEQ"/> <property name="firstName" column="FNAME"/> <property name="lastName" column="LNAME"/> <property name="street" column="ADDRESS"/> <property name="city"/> <property name="state"/> <property name="zip"/> <property name="dateDeferred" type="timestamp" column="DEF_DATE"/> <property name="dateDisqualified" type="timestamp" column="DATE_DISQ"/> <property name="dateExcused" type="timestamp" column="DATE_EXCUS"/> <property name="dateOfBirth" type="timestamp" column="DOB"/> <property name="responded"/> <property name="gender"/> <property name="homePhone" column="H_PHONE"/> <property name="workPhone" column="W_PHONE"/> <property name="workExtension" column="W_PH_LOCAL"/> <property name="disqualifiedCode" column="DISQ_CODE"/> <property name="excuseCode" column="EXC_CODE"/> <property name="courtLocation" column="LOC_CODE"/> <property name="nextDate" type="calendar_date" column="NEXT_DATE"/> <property name="notes" column="NOTES"/> <property name="numberAwol" column="NO_AWOL"/> <property name="numberAttended" column="NO_ATTENDANCES"/> <property name="numberFta" column="NO_FTA"/> <property name="numberOfDeferralsPosted" column="NO_DEF_POS"/> <property name="onCall" column="ON_CALL"/> <property name="returnDate" type="calendar_date" column="RET_DATE"/> <property name="courtemp" column="COURT_EMP"/> <property name="payCountyemp" column="PAY_COUNTY_EMP"/> <property name="occupationCode" column="OCCUPATION_CODE"/> <many-to-one name="status" column="STATUS" class="com.acs.gs.juror.bo.PoolStatus" fetch="join" /> --> </class> </hibernate-mapping>
Ideas?


Reply With Quote