db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Braeuchi <jbraeu...@gmx.ch>
Subject Re: Materialising the wrong type of object when prefetching relations hips where related class is part of extent
Date Mon, 31 Jan 2005 19:50:34 GMT
hi mark,

the repository is quite big...

i assume that the error caused by 
PersistentFieldDirectAccessImplNew#getField() returning a field 
belonging to a different class.
could you please post the declaring class of the field causing the error ?

jakob

Mark Rowell schrieb:
> Jakob Braeuchi <jbraeuchi <at> gmx.ch> writes:
> 
> 
>>hi mark,
>>
>>could you please post the relevant parts of your repository to this list.
>>
>>jakob
>>
> 
> Jakob
> 
> See below....
> 
> Thanks
> 
> Mark
> 
> ------- snip ----------------
> <!-- Please keep user defined mappings in this file only
>      to avoid mixing user defined and system mappings. -->
> <!-- Mapping of User defined classes starts here -->
> <!-- Quantz issuer model -->
> <class-descriptor 
> class="com.credittrade.instruments.securities.BBGIssuerModel" 
> 	table="BBGIssuers" >
> 	<field-descriptor name="id" column="IssuerID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="name" column="NAME" jdbc-type="VARCHAR" />
> 	<field-descriptor name="bbgTicker" column="Ticker" jdbc-
> type="VARCHAR" />
> 	<collection-descriptor name="bonds" 
> 		element-class-
> ref="com.credittrade.instruments.securities.Bond" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		orderby="maturityDate" sort="ASC" proxy="true" >
> 		<inverse-foreignkey field-ref="issuerID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Extent for all instruments -->
> <class-descriptor class="com.credittrade.instruments.Instrument">
> 	<extent-class class-
> ref="com.credittrade.instruments.securities.Bond" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.InterestRateDerivative" 
> 		/>
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.AbstractAssetSwap" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.CreditDefaultSwap" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.CreditSpreadOption" 
> 		/>
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.MultiNameCreditDerivative"/>
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" 
> proxy="true" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.MultiNameCreditDerivativ
> e">
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.DefaultBasket" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.SyntheticCDO" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.PortfolioDefaultSwap" 
> 		/>
> </class-descriptor>
> <!-- Extent for interest rate derivatives -->
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.InterestRateDerivative">
> 	<extent-class class-
> ref="com.credittrade.instruments.derivatives.Deposit"/>
> 	<!--      <extent-class class-
> ref="com.credittrade.instruments.derivatives.IRFuture"/> -->
> 	<extent-class class-
> ref="com.credittrade.instruments.derivatives.IRSwap"/>
> </class-descriptor>
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.AbstractAssetSwap">
> 	<extent-class 
> 		class-ref="com.credittrade.instruments.derivatives.AssetSwap"/>
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.derivatives.CMAssetSwap"/>
> </class-descriptor>
> <!-- Extent for all bonds -->
> <class-descriptor class="com.credittrade.instruments.securities.Bond">
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.securities.BBGBondModel" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.securities.BBGFRNModel" />
> </class-descriptor>
> <class-descriptor class="com.credittrade.instruments.InstrumentGroup" 
> 	table="InstrumentGroups" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="instrumentType" column="InstrumentType" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="ordinal" column="Ordinal" jdbc-
> type="INTEGER" />
> 	<!--
>       <collection-descriptor
>          name="instruments"
>          element-class-ref="com.credittrade.instruments.Instrument"
>          auto-retrieve="false"
>          proxy="true"
>       >
>          <inverse-foreignkey field-ref="instrumentGroupID"/>
>       </collection-descriptor>          
> 	  -->
> </class-descriptor>
> <!-- Bond -->
> <class-descriptor class="com.credittrade.instruments.securities.BBGBondModel" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="issuerID" column="BBGIssuerID" jdbc-
> type="INTEGER" 
> 		/>
> 	<field-descriptor name="ticker" column="Ticker" jdbc-type="VARCHAR" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="currency" column="Currency" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="country" column="countryISO" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="interestAccrualDate" 
> column="interestAccrualDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="firstCouponDate" column="firstCouponDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="maturityDate" column="MaturityDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor id="10" name="faceValue" column="parAmount" 
> 		jdbc-type="DOUBLE" />
> 	<field-descriptor name="coupon" column="coupon" jdbc-type="DOUBLE" />
> 	<field-descriptor name="frequency" column="couponFrequency" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="accrualBasis" column="accrualMethod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.AccrualBasisFieldConversion" />
> 	<field-descriptor name="sector" column="sector" jdbc-type="VARCHAR" />
> 	<field-descriptor name="rank" column="rank" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.DebtRankFieldConversion" />
> 	<field-descriptor name="issueSize" column="issueSize" jdbc-
> type="DOUBLE" />
> 	<field-descriptor name="market" column="market" jdbc-type="VARCHAR" />
> 	<field-descriptor name="isin" column="isin" jdbc-type="VARCHAR" />
> 	<field-descriptor name="cusip" column="cusip" jdbc-type="VARCHAR" />
> 	<field-descriptor id="20" name="lastUpdated" column="timestamp" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="createdDate" column="CreatedDate" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="issuer" 
> 		class-
> ref="com.credittrade.instruments.securities.BBGIssuerModel" 
> 		proxy="true" >
> 		<foreignkey field-ref="issuerID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="cashflows" 
> 		element-class-
> ref="com.credittrade.instruments.securities.BondCashflowModel" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> 		orderby="date" sort="ASC" proxy="true" >
> 		<inverse-foreignkey field-ref="bondID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="ratings" 
> 		element-class-
> ref="com.credittrade.instruments.securities.BondCreditRating" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> 		orderby="agency" sort="ASC" proxy="true" >
> 		<inverse-foreignkey field-ref="bondID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- FRNs -->
> <class-descriptor class="com.credittrade.instruments.securities.BBGFRNModel" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="issuerID" column="BBGIssuerID" jdbc-
> type="INTEGER" 
> 		/>
> 	<field-descriptor name="ticker" column="Ticker" jdbc-type="VARCHAR" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="currency" column="Currency" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="country" column="countryISO" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="interestAccrualDate" 
> column="interestAccrualDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="firstCouponDate" column="firstCouponDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="maturityDate" column="maturityDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor id="10" name="faceValue" column="parAmount" 
> 		jdbc-type="DOUBLE" />
> 	<field-descriptor name="spread" column="spread" jdbc-type="DOUBLE" />
> 	<field-descriptor name="resetIndex" column="ResetIndex" jdbc-
> type="VARCHAR" 
> 		/>
> 	<field-descriptor name="frequency" column="couponFrequency" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="accrualBasis" column="accrualMethod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.AccrualBasisFieldConversion" />
> 	<field-descriptor name="dateAdjustment" column="DateAdjustment" 
> 		jdbc-type="VARCHAR" 
> 	
> 	conversion="com.credittrade.sql.DateAdjustmentTypeFieldConversion" />
> 	<field-descriptor name="accrueTheoretical" column="AccruesTheoretical" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="sector" column="sector" jdbc-type="VARCHAR" />
> 	<field-descriptor name="rank" column="rank" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.DebtRankFieldConversion" />
> 	<field-descriptor name="issueSize" column="issueSize" jdbc-
> type="DOUBLE" />
> 	<field-descriptor id="20" name="market" column="market" jdbc-
> type="VARCHAR" 
> 		/>
> 	<field-descriptor name="isin" column="isin" jdbc-type="VARCHAR" />
> 	<field-descriptor name="cusip" column="cusip" jdbc-type="VARCHAR" />
> 	<field-descriptor name="lastUpdated" column="timestamp" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="createdDate" column="CreatedDate" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="issuer" 
> 		class-
> ref="com.credittrade.instruments.securities.BBGIssuerModel" >
> 		<foreignkey field-ref="issuerID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="resetHistory" 
> 		element-class-ref="com.credittrade.instruments.ResetModel" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> 		orderby="date" sort="ASC" proxy="true" >
> 		<inverse-foreignkey field-ref="bondID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="ratings" 
> 		element-class-
> ref="com.credittrade.instruments.securities.BondCreditRating" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> 		orderby="agency" sort="ASC" proxy="true" >
> 		<inverse-foreignkey field-ref="bondID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Bond cashflows -->
> <class-descriptor 
> 	class="com.credittrade.instruments.securities.BondCashflowModel" 
> 	table="BondCashflows" >
> 	<field-descriptor name="bondID" column="BondID" jdbc-type="INTEGER" 
> 		primarykey="true" />
> 	<field-descriptor name="date" column="date" jdbc-type="TIMESTAMP" 
> 		primarykey="true" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="interest" column="interest" jdbc-
> type="DOUBLE" />
> 	<field-descriptor name="principal" column="principal" jdbc-
> type="DOUBLE" />
> </class-descriptor>
> <!-- FRN resets -->
> <class-descriptor class="com.credittrade.instruments.ResetModel" 
> 	table="FRNResets" >
> 	<field-descriptor name="bondID" column="BondID" jdbc-type="INTEGER" 
> 		primarykey="true" />
> 	<field-descriptor name="date" column="date" jdbc-type="TIMESTAMP" 
> 		primarykey="true" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="reset" column="reset" jdbc-type="DOUBLE" />
> </class-descriptor>
> <!-- Bond credit ratings -->
> <class-descriptor 
> 	class="com.credittrade.instruments.securities.BondCreditRating" 
> 	table="BondRatings" >
> 	<field-descriptor name="bondID" column="BondID" jdbc-type="INTEGER" 
> 		primarykey="true" />
> 	<field-descriptor name="agency" column="agency" jdbc-type="INTEGER" 
> 		primarykey="true" 
> 		conversion="com.credittrade.sql.RatingAgencyFieldConversion" />
> 	<field-descriptor name="rating" column="rating" jdbc-type="VARCHAR" />
> </class-descriptor>
> <!-- CT Issuer Model -->
> <class-descriptor 
> class="com.credittrade.instruments.derivatives.CTIssuerModel" 
> 	table="CTIssuers" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="false" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<!-- put in short name atr as well -->
> 	<field-descriptor name="bbgTicker" column="Ticker" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="shortName" column="ShortName" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="industry" column="Industry" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="country" column="Country" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="region" column="Region" jdbc-type="VARCHAR" />
> 	<field-descriptor name="creditType" column="CreditType" jdbc-
> type="VARCHAR" 
> 		/>
> 	<!-- recovery rates by rank -->
> 	<collection-descriptor name="recoveryRates" 
> 		element-class-ref="com.credittrade.instruments.RecoveryRate" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> proxy="true" 
> 		refresh="true" >
> 		<inverse-foreignkey field-ref="issuerID"/>
> 	</collection-descriptor>
> 	<!-- Aliases -->
> 	<collection-descriptor name="aliases" 
> 		element-class-ref="com.credittrade.instruments.Alias" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> proxy="true" 
> 		refresh="true" >
> 		<inverse-foreignkey field-ref="aliasedID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Aliases -->
> <class-descriptor class="com.credittrade.instruments.Alias" table="Aliases">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="aliasedID" column="AliasedID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="aliasType" column="AliasType" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.AliasTypeFC" />
> 	<field-descriptor name="aliasValue" column="AliasValue" jdbc-
> type="VARCHAR" 
> 		/>
> </class-descriptor>
> <!-- recovery rates -->
> <class-descriptor class="com.credittrade.instruments.RecoveryRate" 
> 	table="RecoveryRates">
> 	<field-descriptor name="issuerID" column="IssuerID" jdbc-
> type="INTEGER" 
> 		primarykey="true" autoincrement="false" />
> 	<field-descriptor name="rank" column="Rank" jdbc-type="VARCHAR" 
> 		primarykey="true" 
> 		conversion="com.credittrade.sql.DebtRankFieldConversion" />
> 	<field-descriptor name="recoveryRate" column="RecoveryRate" 
> 		jdbc-type="DOUBLE" />
> </class-descriptor>
> <!-- Curve definitions -->
> <class-descriptor class="com.credittrade.curves.CurveDefinition" 
> 	table="CurveDefinitions">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="curveType" column="curveTypeID" jdbc-
> type="INTEGER" 
> 		conversion="com.credittrade.sql.CurveTypeFieldConversion" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="validFrom" column="ValidFrom" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="validTo" column="ValidTo" primarykey="true" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<collection-descriptor name="curvePoints" 
> 		element-class-ref="com.credittrade.curves.CurvePoint" 
> proxy="true" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> 		refresh="true" >
> 		<inverse-foreignkey field-ref="curveID"/>
> 		<inverse-foreignkey field-ref="validTo"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- curve points -->
> <class-descriptor class="com.credittrade.curves.CurvePoint" 
> table="CurvePoints">
> 	<field-descriptor name="curveID" column="CurveID" jdbc-type="INTEGER" 
> 		primarykey="true" />
> 	<field-descriptor name="instrumentID" column="InstrumentID" 
> 		jdbc-type="INTEGER" primarykey="true" />
> 	<field-descriptor name="included" column="Included" jdbc-
> type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="validFrom" column="ValidFrom" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="validTo" column="ValidTo" primarykey="true" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<!-- ref to instrument -->
> 	<reference-descriptor name="instrument" 
> 		class-ref="com.credittrade.instruments.Instrument" auto-
> retrieve="true" 
> 		auto-update="false" auto-delete="false" proxy="false" >
> 		<foreignkey field-ref="InstrumentID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <!-- Deposits -->
> <class-descriptor class="com.credittrade.instruments.derivatives.Deposit" 
> 	table="Instruments">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="maturityPeriod" column="MaturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Futures -->
> <class-descriptor class="com.credittrade.instruments.derivatives.IRFuture" 
> 	table="Instruments">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="expiryDate" column="ExpiryDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Swaps -->
> <class-descriptor class="com.credittrade.instruments.derivatives.IRSwap" 
> 	table="Instruments">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="maturityPeriod" column="MaturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- PriceDetails -->
> <class-descriptor class="com.credittrade.market.PriceDetail" 
> 	table="PriceDetails">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="instrumentID" column="InstrumentID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="priceValueType" column="typeID" jdbc-
> type="VARCHAR" 
> 	
> 	conversion="com.credittrade.sql.PriceValueTypeFieldConversion" />
> 	<field-descriptor name="quoteType" column="quoteTypeID" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.QuoteTypeFieldConversion" />
> 	<field-descriptor name="priceType" column="priceTypeID" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.PriceTypeFieldConversion" />
> 	<field-descriptor name="provider" column="Provider" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="priceSource" column="PriceSource" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PriceSourceFieldConversion" />
> 	<reference-descriptor name="instrument" 
> 		class-ref="com.credittrade.instruments.Instrument" 
> proxy="false" >
> 		<foreignkey field-ref="instrumentID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="prices" 
> 		element-class-ref="com.credittrade.market.Price" auto-
> retrieve="true" 
> 		auto-update="false" auto-delete="false" orderby="timestamp" 
> sort="DESC" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="priceDetailID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Prices -->
> <class-descriptor class="com.credittrade.market.Price" table="Prices">
> 	<field-descriptor name="priceDetailID" column="PriceDetailsID" 
> 		jdbc-type="INTEGER" primarykey="true" />
> 	<field-descriptor name="timestamp" column="Timestamp" jdbc-
> type="TIMESTAMP" 
> 		primarykey="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="live" column="IsLive" jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="value" column="Value" jdbc-type="DOUBLE" />
> 	<field-descriptor name="userID" column="UserID" jdbc-type="VARCHAR" />
> 	<reference-descriptor name="priceDetail" 
> 		class-ref="com.credittrade.market.PriceDetail" proxy="false" 
> 		refresh="true" >
> 		<foreignkey field-ref="priceDetailID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="note" 
> 		element-class-ref="com.credittrade.market.PriceNote" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> proxy="true" 
> 		refresh="true" >
> 		<inverse-foreignkey field-ref="priceDetailID"/>
> 		<inverse-foreignkey field-ref="timestamp"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.market.PriceNote" table="PriceNotes">
> 	<field-descriptor name="priceDetailID" column="PriceDetailsID" 
> 		jdbc-type="INTEGER" primarykey="true" />
> 	<field-descriptor name="timestamp" column="Timestamp" jdbc-
> type="TIMESTAMP" 
> 		primarykey="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor if="3" name="text" column="Notes" jdbc-
> type="VARCHAR" />
> </class-descriptor>
> <!-- Price specifiers -->
> <class-descriptor class="com.credittrade.market.PriceSpecifier" 
> 	table="PriceSpecifiers">
> 	<field-descriptor name="instrumentID" column="InstrumentID" 
> 		primarykey="true" jdbc-type="INTEGER" />
> 	<field-descriptor name="priceSource" column="PriceSource" 
> primarykey="true" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PriceSourceFieldConversion" />
> 	<field-descriptor name="priceIdentifier" column="PriceIdentifier" 
> 		jdbc-type="VARCHAR" 
> 	
> 	conversion="com.credittrade.sql.PriceIdentifierFieldConversion" />
> </class-descriptor>
> <!-- Asset swaps to bonds -->
> <class-descriptor class="com.credittrade.instruments.derivatives.AssetSwap" 
> 	table="Instruments">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="bondID" column="BondID" jdbc-type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<!-- ref to bond -->
> 	<reference-descriptor name="bond" 
> 		class-ref="com.credittrade.instruments.securities.Bond" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<foreignkey field-ref="bondID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <!-- Asset swaps to constant maturities -->
> <class-descriptor class="com.credittrade.instruments.derivatives.CMAssetSwap" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="issuerID" column="CTIssuerID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="rank" column="rank" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.DebtRankFieldConversion" />
> 	<field-descriptor name="maturityPeriod" column="maturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="issuer" 
> 		class-
> ref="com.credittrade.instruments.derivatives.CTIssuerModel" >
> 		<foreignkey field-ref="issuerID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Credit default swaps -->
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.CreditDefaultSwap" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="issuerID" column="CTIssuerID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="rank" column="rank" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.DebtRankFieldConversion" />
> 	<field-descriptor name="maturityPeriod" column="maturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="maturityDate" column="maturityDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="startPeriod" column="StartPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="specifiedStartDate" column="StartDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="issuer" 
> 		class-
> ref="com.credittrade.instruments.derivatives.CTIssuerModel" >
> 		<foreignkey field-ref="issuerID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- The following entries are for the task/work execution framework -->
> <class-descriptor class="com.credittrade.system.task.Work" 
> 	table="WorkExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="name" column="name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="runByWhom" column="RunByWhom" jdbc-
> type="VARCHAR" />
> 	<collection-descriptor name="executedTasks" 
> 		element-class-ref="com.credittrade.system.task.Task" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="workRunID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.system.task.TaskEvent" 
> 	table="TaskEvents">
> 	<extent-class class-
> ref="com.credittrade.system.task.SplittableTaskEvent"/>
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="taskRunID" column="TaskRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="succeeded" column="Succeeded" jdbc-
> type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="reason" column="Reason" jdbc-type="VARCHAR" />
> </class-descriptor>
> <class-descriptor class="com.credittrade.system.task.SplittableTaskEvent" 
> 	table="TaskEvents">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="taskRunID" column="TaskRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="succeeded" column="Succeeded" jdbc-
> type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="reason" column="Reason" jdbc-type="VARCHAR" />
> 	<field-descriptor name="identifierText" column="IdentifierText" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="identifierType" column="IdentifierType" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.ClassNameFieldConversion" />
> </class-descriptor>
> <class-descriptor class="com.credittrade.system.task.Task" 
> 	table="TaskExecutionLogs" >
> 	<extent-class class-ref="com.credittrade.system.task.AsAtRangeTask" />
> 	<extent-class class-ref="com.credittrade.data.BloombergExtractTask" />
> 	<extent-class class-
> ref="com.credittrade.data.BloombergPriceHistoryTask" />
> 	<extent-class class-ref="com.credittrade.data.LiborCurveBuilderTask" />
> 	<!--
>         <extent-class class-
> ref="com.credittrade.data.BondCurveBuilderTask" />      
>         <extent-class class-
> ref="com.credittrade.data.DefaultProbabilityCurveBuilderTask" />      
>                 -->
> 	<extent-class class-ref="com.credittrade.system.task.Task$DummyTask"/>
> 	<extent-class class-ref="com.credittrade.system.task.SendMailTask" />
> 	<extent-class class-
> ref="com.credittrade.data.reports.ExcelReportOutput" />
> 	<extent-class class-ref="com.credittrade.data.CTIssuerUpdateTask" />
> 	<extent-class 
> 		class-
> ref="com.credittrade.instruments.ra.ImportMoodysIndustries" />
> 	<extent-class class-ref="com.credittrade.market.ExpirePricesTask" />
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.system.task.AsAtRangeTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.system.task.Task$DummyTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.system.task.SendMailTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.data.reports.ExcelReportOutput" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.data.CTIssuerUpdateTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.market.ExpirePricesTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor 
> class="com.credittrade.instruments.ra.ImportMoodysIndustries" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.data.LiborCurveBuilderTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.data.BloombergExtractTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.data.BloombergPriceHistoryTask" 
> 	table="TaskExecutionLogs">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="workRunID" column="WorkRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="startedAt" column="StartedAt" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="finishedAt" column="FinishedAt" 
> 		jdbc-type="TIMESTAMP" nullable="true" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="currentlyRunning" column="CurrentlyRunning" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<collection-descriptor name="taskEvents" 
> 		element-class-ref="com.credittrade.system.task.TaskEvent" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" >
> 		<inverse-foreignkey field-ref="taskRunID"/>
> 	</collection-descriptor>
> 	<reference-descriptor name="work" 
> 		class-ref="com.credittrade.system.task.Work" >
> 		<foreignkey field-ref="workRunID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <!-- curve build problems when run from tasks -->
> <class-descriptor class="com.credittrade.curves.CurveBuildResult" 
> 	table="CurveBuildResults">
> 	<extent-class class-
> ref="com.credittrade.curves.FittedCurveBuildResult"/>
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="taskRunID" column="TaskRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="asAtDate" column="AsAtDate" jdbc-
> type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="curveDefinitionID" column="CurveDefinitionID" 
> 		jdbc-type="INTEGER" />
> 	<reference-descriptor name="task" 
> 		class-ref="com.credittrade.system.task.Task" >
> 		<foreignkey field-ref="taskRunID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="buildProblems" 
> 		element-class-ref="com.credittrade.curves.CurveBuildProblem" 
> 		auto-retrieve="true" auto-update="true" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="curveBuildResultID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.curves.CurveBuildProblem" 
> 	table="CurveBuildProblems">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="curveBuildResultID" 
> column="CurveBuildResultID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="message" column="message" jdbc-
> type="VARCHAR" />
> 	<field-descriptor name="error" column="IsError" jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> </class-descriptor>
> <class-descriptor class="com.credittrade.curves.FittedCurveBuildResult" 
> 	table="CurveBuildResults">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="taskRunID" column="TaskRunID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR" />
> 	<field-descriptor name="asAtDate" column="AsAtDate" jdbc-
> type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="curveDefinitionID" column="CurveDefinitionID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="goodnessOfFit" column="GoodnessOfFit" 
> 		jdbc-type="DOUBLE" />
> 	<field-descriptor name="q" column="Q" jdbc-type="DOUBLE" />
> 	<field-descriptor name="iterationCount" column="Iterations" 
> 		jdbc-type="INTEGER" />
> 	<reference-descriptor name="task" 
> 		class-ref="com.credittrade.system.task.Task" >
> 		<foreignkey field-ref="taskRunID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="buildProblems" 
> 		element-class-ref="com.credittrade.curves.CurveBuildProblem" 
> 		auto-retrieve="true" auto-update="true" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="curveBuildResultID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Moodys issuers and industries -->
> <class-descriptor class="com.credittrade.instruments.ra.Industry" 
> 	table="AgencyIndustry" >
> 	<field-descriptor name="id" column="IndustryID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true"/>
> 	<field-descriptor name="agency" column="AgencyID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="false" 
> 		conversion="com.credittrade.sql.RatingAgencyFCForCT" />
> 	<field-descriptor name="industry" column="Industry" jdbc-
> type="VARCHAR" />
> </class-descriptor>
> <class-descriptor class="com.credittrade.instruments.ra.Issuer" 
> 	table="AgencyIssuer" >
> 	<field-descriptor name="issuerID" column="IssuerID" jdbc-
> type="VARCHAR" 
> 		primarykey="true"/>
> 	<field-descriptor name="agency" column="AgencyID" jdbc-type="INTEGER" 
> 		primarykey="true" 
> conversion="com.credittrade.sql.RatingAgencyFCForCT" 
> 		/>
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="industryID" column="IndustryID" jdbc-
> type="INTEGER" 
> 		/>
> 	<reference-descriptor name="industry" 
> 		class-ref="com.credittrade.instruments.ra.Industry" >
> 		<foreignkey field-ref="industryID"/>
> 		<foreignkey field-ref="agency"/>
> 	</reference-descriptor>
> </class-descriptor>
> <!-- Default baskets -->
> <class-descriptor 
> class="com.credittrade.instruments.derivatives.DefaultBasket" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="portfolioID" column="PortfolioID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="maturityPeriod" column="maturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="maturityDate" column="maturityDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="defaultsFrom" column="DefaultsFrom" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="defaultsCovered" column="DefaultsCovered" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="cdsPortfolioID" column="ReferenceSwapID" 
> 		jdbc-type="INTEGER"/>
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="portfolio" 
> 		class-ref="com.credittrade.instruments.derivatives.Portfolio" 
> 		proxy="false" >
> 		<foreignkey field-ref="portfolioID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="creditDefaultSwaps" 
> 		class-
> ref="com.credittrade.instruments.derivatives.CDSPortfolio" 
> 		auto-retrieve="true" auto-update="true" auto-delete="true" 
> 		proxy="false" >
> 		<foreignkey field-ref="cdsPortfolioID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.instruments.derivatives.CDSPortfolio" 
> 	table="CreditDefaultSwapPortfolios" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true"/>
> 	<collection-descriptor name="swaps" 
> 		element-class-
> ref="com.credittrade.instruments.derivatives.CreditDefaultSwap" 
> 		auto-retrieve="true" auto-update="true" 
> 		indirection-table="CreditDefaultSwapPortfolioEntries" 
> proxy="true" >
> 		<fk-pointing-to-this-class 
> column="CreditDefaultSwapPortfolioID"/>
> 		<fk-pointing-to-element-class column="CreditDefaultSwapID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Synthetic CDO -->
> <class-descriptor class="com.credittrade.instruments.derivatives.SyntheticCDO" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="portfolioID" column="PortfolioID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="maturityPeriod" column="maturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="maturityDate" column="maturityDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<field-descriptor name="attachmentPoint" column="AttachmentPoint" 
> 		jdbc-type="DOUBLE" />
> 	<field-descriptor name="exhaustionPoint" column="ExhaustionPoint" 
> 		jdbc-type="DOUBLE" />
> 	<field-descriptor name="runningPremium" column="RunningPremium" 
> 		jdbc-type="DOUBLE" />
> 	<field-descriptor name="referenceSwapID" column="ReferenceSwapID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="portfolio" 
> 		class-ref="com.credittrade.instruments.derivatives.Portfolio" >
> 		<foreignkey field-ref="portfolioID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="referenceSwap" 
> 		class-
> ref="com.credittrade.instruments.derivatives.PortfolioDefaultSwap" 
> 		>
> 		<foreignkey field-ref="referenceSwapID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- portfolio -->
> <class-descriptor class="com.credittrade.instruments.derivatives.Portfolio" 
> 	table="Portfolios" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true"/>
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR"/>
> 	<collection-descriptor name="referenceCredits" 
> 		element-class-
> ref="com.credittrade.instruments.derivatives.ReferenceCredit" 
> 		auto-retrieve="true" auto-update="true" 
> 		indirection-table="PortfolioReferenceCredits" >
> 		<fk-pointing-to-this-class column="PortfolioID"/>
> 		<fk-pointing-to-element-class column="ReferenceCreditID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.ReferenceCredit" 
> 	table="ReferenceCredits" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="issuerID" column="IssuerID" jdbc-
> type="INTEGER" />
> 	<field-descriptor name="rank" column="Rank" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.DebtRankFieldConversion" />
> 	<reference-descriptor name="issuer" 
> 		class-
> ref="com.credittrade.instruments.derivatives.CTIssuerModel" >
> 		<foreignkey field-ref="issuerID"/>
> 	</reference-descriptor>
> </class-descriptor>
> <!-- implied correlation related stuff -->
> <class-descriptor class="com.credittrade.market.ImpliedCorrelations" 
> 	table="ImpliedCorrelations">
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="timestamp" column="timestamp" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="chiSq" column="ChiSq" jdbc-type="DOUBLE" />
> 	<field-descriptor name="q" column="Q" jdbc-type="DOUBLE" />
> 	<field-descriptor name="iterationCount" column="IterationCount" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="marketCount" column="MarketCount" 
> 		jdbc-type="INTEGER" />
> 	<collection-descriptor name="correlations" 
> 		element-class-
> ref="com.credittrade.market.SectorImpliedCorrelation" 
> 		auto-retrieve="true" auto-update="true" auto-delete="false" 
> 		proxy="true" refresh="true" orderby="SectorID" sort="ASC" >
> 		<inverse-foreignkey field-ref="impliedCorrelationsID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.market.SectorImpliedCorrelation" 
> 	table="SectorImpliedCorrelations">
> 	<field-descriptor name="impliedCorrelationsID" 
> 		column="ImpliedCorrelationsID" jdbc-type="INTEGER" 
> primarykey="true" />
> 	<field-descriptor name="sector" column="SectorID" jdbc-type="INTEGER" 
> 		primarykey="true" 
> conversion="com.credittrade.sql.CorrelationSectorFC" 
> 		/>
> 	<field-descriptor name="creditCount" column="CreditCount" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="correlation" column="Correlation" 
> 		jdbc-type="DOUBLE" />
> </class-descriptor>
> <!-- portfolio default swap -->
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.PortfolioDefaultSwap" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="currency" column="Currency" jdbc-type="CHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" />
> 	<field-descriptor name="portfolioID" column="PortfolioID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="maturityPeriod" column="maturityPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="maturityDate" column="maturityDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="portfolio" 
> 		class-ref="com.credittrade.instruments.derivatives.Portfolio" >
> 		<foreignkey field-ref="portfolioID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- Credit spread options -->
> <class-descriptor 
> 	class="com.credittrade.instruments.derivatives.CreditSpreadOption" 
> 	table="Instruments" >
> 	<field-descriptor name="id" column="ID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="swapID" column="ReferenceSwapID" 
> 		jdbc-type="INTEGER" />
> 	<field-descriptor name="optionType" column="OptionType" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.OptionTypeFieldConversion" />
> 	<field-descriptor name="strike" column="Strike" jdbc-type="FLOAT" />
> 	<field-descriptor name="knockout" column="Knockout" jdbc-
> type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="ojbConcreteClass" column="OjbConcreteClass" 
> 		jdbc-type="VARCHAR"/>
> 	<field-descriptor name="instrumentGroupID" column="InstrumentGroupID" 
> 		jdbc-type="INTEGER" nullable="true" />
> 	<reference-descriptor name="instrumentGroup" 
> 		class-ref="com.credittrade.instruments.InstrumentGroup" >
> 		<foreignkey field-ref="instrumentGroupID"/>
> 	</reference-descriptor>
> 	<reference-descriptor name="swap" 
> 		class-
> ref="com.credittrade.instruments.derivatives.CreditDefaultSwap" 
> 		proxy="false" >
> 		<foreignkey field-ref="swapID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="priceDetails" 
> 		element-class-ref="com.credittrade.market.PriceDetail" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" refresh="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> 	<collection-descriptor name="priceSpecifiers" 
> 		element-class-ref="com.credittrade.market.PriceSpecifier" 
> 		auto-retrieve="true" auto-update="false" auto-delete="false" 
> 		proxy="true" >
> 		<inverse-foreignkey field-ref="instrumentID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <!-- holidays -->
> <class-descriptor class="com.credittrade.dates.HolidayCalendar" 
> 	table="HolidayCalendars" >
> 	<field-descriptor name="code" column="CentreCode" jdbc-type="VARCHAR" 
> 		primarykey="true" />
> 	<field-descriptor name="name" column="Name" jdbc-type="VARCHAR" />
> 	<collection-descriptor name="dummy" 
> 		element-class-ref="com.credittrade.dates.HolidayCalendar$Date" 
> 		auto-retrieve="true" >
> 		<inverse-foreignkey field-ref="code"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.dates.HolidayCalendar$Date" 
> 	table="HolidayCalendarDates">
> 	<field-descriptor name="code" column="CentreCode" jdbc-type="VARCHAR" 
> 		primarykey="true" />
> 	<field-descriptor name="date" column="Date" jdbc-type="TIMESTAMP" 
> 		primarykey="true" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" />
> 	<field-descriptor name="description" column="Description" 
> 		jdbc-type="VARCHAR" />
> </class-descriptor>
> <class-descriptor class="com.credittrade.instruments.CurrencyDetails" 
> 	table="Currencies">
> 	<field-descriptor name="code" column="Code" jdbc-type="vARCHAR" 
> 		primarykey="true" />
> 	<field-descriptor name="euro" column="IsEuro" jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="depositBasis" column="DepositBasis" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.AccrualBasisFieldConversion" />
> 	<field-descriptor name="swapBasis" column="SwapFixedBasis" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.AccrualBasisFieldConversion" />
> 	<field-descriptor name="moneyMarketSettlementPeriod" 
> 		column="MMSettlementPeriod" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="bondMarketSettlementPeriod" 
> 		column="BondSettlementPeriod" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="cdsSettlementPeriod" 
> column="CDSSettlementPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="optionValuePeriod" column="OptionValuePeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="futuresUnderlyingPeriod" 
> 		column="FuturesUnderlyingPeriod" jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="swapFixedPeriod" column="SwapFixedPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="swapFloatPeriod" column="SwapFloatPeriod" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.PeriodFieldConversion" />
> 	<field-descriptor name="holidays" column="Holidays" jdbc-
> type="VARCHAR" 
> 		conversion="com.credittrade.sql.HolidayFieldConversion" />
> 	<field-descriptor name="symbol" column="Symbol" jdbc-type="VARCHAR" />
> </class-descriptor>
> <!-- Trades table -->
> <class-descriptor class="com.credittrade.trades.Trade" table="Trades" >
> 	<field-descriptor name="tradeID" column="TradeID" jdbc-type="INTEGER" 
> 		primarykey="true" autoincrement="true" />
> 	<field-descriptor name="instrumentID" column="InstrumentID" 
> 		jdbc-type="INTEGER" />
> 	<reference-descriptor name="instrument" 
> 		class-ref="com.credittrade.instruments.Instrument" >
> 		<foreignkey field-ref="instrumentID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="tradeVersions" 
> 		element-class-ref="com.credittrade.trades.TradeVersion" >
> 		<inverse-foreignkey field-ref="tradeID"/>
> 	</collection-descriptor>
> </class-descriptor>
> <class-descriptor class="com.credittrade.trades.TradeVersion" 
> 	table="TradeVersions" >
> 	<field-descriptor name="tradeID" column="TradeID" jdbc-type="INTEGER" 
> 		primarykey="true" />
> 	<field-descriptor name="versionID" column="VersionID" 
> autoincrement="true" 
> 		jdbc-type="INTEGER" primarykey="true" />
> 	<field-descriptor name="versionDate" column="VersionDate" 
> 		jdbc-type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		/>
> 	<field-descriptor name="userID" column="UserID" jdbc-type="VARCHAR" 
> 		nullable="false" />
> 	<field-descriptor name="tradeDate" column="TradeDate" jdbc-
> type="TIMESTAMP" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlT
> imestampFieldConversion" 
> 		nullable="true" />
> 	<field-descriptor name="effectiveDate" column="EffectiveDate" 
> 		jdbc-type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" 
> nullable="true" 
> 		/>
> 	<field-descriptor name="valueDate" column="ValueDate" jdbc-
> type="TIMESTAMP" 
> 		conversion="com.credittrade.sql.FinDateFieldConversion" 
> nullable="true" 
> 		/>
> 	<field-descriptor name="price" column="TradedPrice" jdbc-
> type="DECIMAL" 
> 		nullable="true" />
> 	<field-descriptor name="notional" column="Notional" jdbc-
> type="DECIMAL" 
> 		nullable="true" />
> 	<field-descriptor name="counterpartyA" column="CounterpartyAID" 
> 		jdbc-type="INTEGER" 
> conversion="com.credittrade.trades.CompanyFC" 
> 		nullable="true" />
> 	<field-descriptor name="counterpartyB" column="CounterpartyBID" 
> 		jdbc-type="INTEGER" 
> conversion="com.credittrade.trades.CompanyFC" 
> 		nullable="true" />
> 	<field-descriptor name="traderA" column="TraderAID" jdbc-
> type="INTEGER" 
> 		conversion="com.credittrade.trades.IndividualFC" 
> nullable="true" />
> 	<field-descriptor name="traderB" column="TraderBID" jdbc-
> type="INTEGER" 
> 		conversion="com.credittrade.trades.IndividualFC" 
> nullable="true" />
> 	<field-descriptor name="brokerA" column="BrokerAID" jdbc-
> type="INTEGER" 
> 		conversion="com.credittrade.trades.IndividualFC" 
> nullable="true" />
> 	<field-descriptor name="brokerB" column="BrokerBID" jdbc-
> type="INTEGER" 
> 		conversion="com.credittrade.trades.IndividualFC" 
> nullable="true" />
> 	<field-descriptor name="brokerageACcy" column="BrokerageACcy" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" 
> 		nullable="true" />
> 	<field-descriptor name="brokerageAAmount" column="BrokerageAAmount" 
> 		jdbc-type="FLOAT" nullable="true" />
> 	<field-descriptor name="brokerageBCcy" column="BrokerageBCcy" 
> 		jdbc-type="VARCHAR" 
> 		conversion="com.credittrade.sql.CurrencyFieldConversion" 
> 		nullable="true" />
> 	<field-descriptor name="brokerageBAmount" column="BrokerageBAmount" 
> 		jdbc-type="FLOAT" nullable="true" />
> 	<field-descriptor name="notes" column="Notes" jdbc-type="VARCHAR" 
> 		nullable="true" />
> 	<field-descriptor name="internalNotes" column="InternalNotes" 
> 		jdbc-type="VARCHAR" nullable="true" />
> 	<field-descriptor name="complete" column="Complete" jdbc-
> type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="confirmSent" column="ConfirmSent" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<field-descriptor name="deltaRequired" column="DeltaRequired" 
> 		jdbc-type="INTEGER" 
> 	
> 	conversion="org.apache.ojb.broker.accesslayer.conversions.Boolean2IntFi
> eldConversion" 
> 		/>
> 	<reference-descriptor name="trade" class-
> ref="com.credittrade.trades.Trade" 
> 		>
> 		<foreignkey field-ref="tradeID"/>
> 	</reference-descriptor>
> 	<collection-descriptor name="deltaDetails" 
> 		class-ref="com.credittrade.trades.DeltaDetails" auto-
> retrieve="true" 
> 		auto-update="true" auto-delete="true" >
> 		<inverse-foreignkey field-ref="tradeID"/>
> 		<inverse-foreignkey field-ref="versionID"/>
> 		</reference-descriptor>
> 		<class-descriptor class="com.credittrade.trades.DeltaDetails" 
> 			table="TradeDeltaDetails">
> 			<extent-class 
> 				class-
> ref="com.credittrade.trades.baskets.BasketDeltaDetails"/>
> 			<extent-class 
> 				class-
> ref="com.credittrade.trades.options.OptionDeltaDetails"/>
> 			<extent-class 
> 				class-
> ref="com.credittrade.trades.tranches.TrancheDeltaDetails"/>
> 			<field-descriptor name="tradeID" column="TradeID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="versionID" column="VersionID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="instrumentID" 
> column="InstrumentID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="price" column="Price" jdbc-
> type="DOUBLE" 
> 				nullable="true"/>
> 			<field-descriptor name="notional" column="Notional" 
> 				jdbc-type="DOUBLE" nullable="true"/>
> 			<field-descriptor name="ojbConcreteClass" 
> column="OjbConcreteClass" 
> 				jdbc-type="VARCHAR" />
> 		</class-descriptor>
> 		<class-descriptor 
> 		
> 	class="com.credittrade.trades.baskets.BasketDeltaDetails" 
> 			table="TradeDeltaDetails">
> 			<field-descriptor name="tradeID" column="TradeID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="versionID" column="VersionID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="instrumentID" 
> column="InstrumentID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="price" column="Price" jdbc-
> type="DOUBLE" 
> 				nullable="true"/>
> 			<field-descriptor name="notional" column="Notional" 
> 				jdbc-type="DOUBLE" nullable="true"/>
> 			<field-descriptor name="ojbConcreteClass" 
> column="OjbConcreteClass" 
> 				jdbc-type="VARCHAR" />
> 		</class-descriptor>
> 		<class-descriptor 
> 		
> 	class="com.credittrade.trades.options.OptionDeltaDetails" 
> 			table="TradeDeltaDetails">
> 			<field-descriptor name="tradeID" column="TradeID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="versionID" column="VersionID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="instrumentID" 
> column="InstrumentID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="price" column="Price" jdbc-
> type="DOUBLE" 
> 				nullable="true"/>
> 			<field-descriptor name="notional" column="Notional" 
> 				jdbc-type="DOUBLE" nullable="true"/>
> 			<field-descriptor name="ojbConcreteClass" 
> column="OjbConcreteClass" 
> 				jdbc-type="VARCHAR" />
> 		</class-descriptor>
> 		<class-descriptor 
> 		
> 	class="com.credittrade.trades.tranches.TrancheDeltaDetails" 
> 			table="TradeDeltaDetails">
> 			<field-descriptor name="tradeID" column="TradeID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="versionID" column="VersionID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="instrumentID" 
> column="InstrumentID" 
> 				jdbc-type="INTEGER" primarykey="true" 
> autoincrement="false"/>
> 			<field-descriptor name="price" column="Price" jdbc-
> type="DOUBLE" 
> 				nullable="true"/>
> 			<field-descriptor name="notional" column="Notional" 
> 				jdbc-type="DOUBLE" nullable="true"/>
> 			<field-descriptor name="ojbConcreteClass" 
> column="OjbConcreteClass" 
> 				jdbc-type="VARCHAR" />
> 		</class-descriptor>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message