Hi There,
I have a class with a composite id. The mapping for the class works fine until the association mentioned below is added.
When i add a mapping for an one-many (set) association called issues to the class, the error starts to happen. The point to note here is that the association is not on the composite key itself. It is on a different column (lifecycle_id) in the class and it is unique.
Is this a known issue with the version of hibernate am using or am I missing something here.
Any help to resolve the issue would be much appreicated.
Thank you
Ravi Srinivasan
Version - 3.05
Class mappings
[b]Main class mapping[/b]
<hibernate-mapping package="com.db.eps.tracer.domain.entity">
<class name="TracerRawTransStageDetail" table="db_tracer_raw_trans_stage" mutable="true">
<composite-id name="rawTransStageId" class="com.db.eps.tracer.domain.entity.TracerRawTransStageId">
<key-property name="id" column="id" type="java.lang.Integer"/>
<key-property name="versionNo" column="version_no" type="java.math.BigDecimal"/>
</composite-id>
<set name="issues" inverse="true" order-by="id" lazy="false">
<key column="lifecycle_id" property-ref="lifecycleId" />
<one-to-many class="com.db.eps.common.taskservice.service.client.IssueDetail" not-found="ignore"/>
</set>
<property name="lifecycleId" column="lifecycle_id" type="java.lang.Integer" unique="true"/>
<property name="origId" column="orig_id" type="java.lang.Integer"/>
</hibernate-mapping>
ps: There is a joined subclass mapping for the class TracerRawTransStageDetail, but am not showing it here for clarity.
-------------
[b]Collection class mapping[/b]
<hibernate-mapping package="com.db.eps.common.taskservice.service.client">
<class name="IssueDetail" table="db_epics_issue" mutable="true">
<id name="id" column="id" type="java.lang.Integer" >
<generator class="native"/>
</id>
<many-to-one name="issueType" class="IssueTypeDetail" column="issue_type_id" outer-join="false" not-null="true" unique="true" lazy="false" insert="false" update="false"/>
<property name="issueTypeId" column="issue_type_id" type="java.lang.Integer" not-null="true" insert="false" update="false" />
<property name="lifecycleId" column="lifecycle_id" type="java.lang.Integer" not-null="true" insert="false" update="false" />
</hibernate-mapping>
[b]Full stack trace of any exception that occurs:[/b]
extracts from the logs when running a test
....
HbmBinder.bindRootPersistentClassCommonValues - Mapping class: com.db.eps.tracer.domain.entity.TracerRawTransStageDetail -> db_tracer_raw_trans_stage
2005-12-15 16:48:36,495 DEBUG HbmBinder.bindProperty - Mapped property: id -> id
2005-12-15 16:48:36,495 DEBUG HbmBinder.bindProperty - Mapped property: versionNo -> version_no
2005-12-15 16:48:36,495 DEBUG HbmBinder.bindProperty - Mapped property: rawTransStageId -> id, version_no
2005-12-15 16:48:36,557 DEBUG HbmBinder.bindProperty - Mapped property: issues
2005-12-15 16:48:36,557 DEBUG HbmBinder.bindProperty - Mapped property: lifecycleId -> lifecycle_id
2005-12-15 16:48:36,557 DEBUG HbmBinder.bindProperty - Mapped property: origId -> orig_id
2005-12-15 16:48:36,557 DEBUG HbmBinder.bindProperty - Mapped property: groupId -> group_id
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: tradeFileId -> trade_file_id
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: lineNo -> line_no
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: client -> client
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: account -> account
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: relationshipType -> relationship_type
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: tranType -> tran_type
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: actionType -> action_type
2005-12-15 16:48:36,573 DEBUG HbmBinder.bindProperty - Mapped property: productType -> product_type
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: clientCpty -> client_cpty
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: tradeDate -> trade_date
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: valueDate -> value_date
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: reference -> reference
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: notes -> notes
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: reference2 -> reference2
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: blotterCode -> blotter_cd
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: billingCode -> billing_cd
2005-12-15 16:48:36,589 DEBUG HbmBinder.bindProperty - Mapped property: clientSpecific1 -> client_spec_1
2005-12-15 16:48:36,604 DEBUG HbmBinder.bindProperty - Mapped property: clientSpecific2 -> client_spec_2
2005-12-15 16:48:36,604 DEBUG HbmBinder.bindProperty - Mapped property: sourceId -> source_id
2005-12-15 16:48:36,604 DEBUG HbmBinder.bindProperty - Mapped property: processingTimestamp -> processing_timestamp
2005-12-15 16:48:36,604 DEBUG HbmBinder.bindProperty - Mapped property: processingStatus -> processing_status
2005-12-15 16:48:36,604 DEBUG HbmBinder.bindProperty - Mapped property: amendReason -> amend_reason
2005-12-15 16:48:36,604 DEBUG HbmBinder.bindProperty - Mapped property: lastmodAction -> lastmodaction
2005-12-15 16:48:36,620 DEBUG HbmBinder.bindProperty - Mapped property: lastmodUser -> lastmod_user
2005-12-15 16:48:36,620 DEBUG HbmBinder.bindProperty - Mapped property: lastmodTime -> lastmod_time
[b]Name and version of the database you are using:[/b]
Adaptive Server Enterprise, version: Adaptive Server Enterprise/12.5.2
[b]Debug level Hibernate log excerpt:[/b]
2005-12-15 16:48:51,058 DEBUG SessionFactoryObjectFactory.<clinit> - initializing class SessionFactoryObjectFactory
2005-12-15 16:48:51,073 DEBUG SessionFactoryObjectFactory.addInstance - registered: 8a0e4cc6082f52ca01082f52f1530000 (unnamed)
2005-12-15 16:48:51,073 INFO SessionFactoryObjectFactory.addInstance - Not binding factory to JNDI, no JNDI name configured
2005-12-15 16:48:51,073 DEBUG SessionFactoryImpl.<init> - instantiated session factory
2005-12-15 16:48:51,073 INFO SessionFactoryImpl.checkNamedQueries - Checking 0 named queries
2005-12-15 16:48:51,245 DEBUG SessionImpl.<init> - opened session at timestamp: 4647589196140544
2005-12-15 16:48:52,667 DEBUG AbstractBatcher.logOpenPreparedStatement - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2005-12-15 16:48:52,667 DEBUG ConnectionManager.openConnection - opening JDBC connection
2005-12-15 16:48:52,667 DEBUG DriverManagerConnectionProvider.getConnection - total checked-out connections: 0
2005-12-15 16:48:52,667 DEBUG DriverManagerConnectionProvider.getConnection - using pooled JDBC connection, pool size: 0
2005-12-15 16:48:52,761 DEBUG SQL.log - select this_.id as id0_, this_.version_no as version2_0_, this_1_.lifecycle_id as lifecycle3_8_0_, this_1_.orig_id as orig4_8_0_, this_1_.group_id as group5_8_0_, this_1_.trade_file_id as trade6_8_0_, this_1_.line_no as line7_8_0_, this_1_.client as client8_0_, this_1_.account as account8_0_, this_1_.relationship_type as relatio10_8_0_, this_1_.tran_type as tran11_8_0_, this_1_.action_type as action12_8_0_, this_1_.product_type as product13_8_0_, this_1_.client_cpty as client14_8_0_, this_1_.trade_date as trade15_8_0_, this_1_.value_date as value16_8_0_, this_1_.reference as reference8_0_, this_1_.notes as notes8_0_, this_1_.reference2 as reference19_8_0_, this_1_.blotter_cd as blotter20_8_0_, this_1_.billing_cd as billing21_8_0_, this_1_.client_spec_1 as client22_8_0_, this_1_.client_spec_2 as client23_8_0_, this_1_.source_id as source24_8_0_, this_1_.processing_timestamp as processing25_8_0_, this_1_.processing_status as processing26_8_0_, this_1_.amend_reason as amend27_8_0_, this_1_.lastmodaction as lastmod28_8_0_, this_1_.lastmod_user as lastmod29_8_0_, this_1_.lastmod_time as lastmod30_8_0_, this_.price as price9_0_, this_.security_code as security4_9_0_, this_.security_code_type as security5_9_0_, this_.exchange as exchange9_0_, this_.quantity as quantity9_0_, this_.currency as currency9_0_, this_.amount as amount9_0_, this_.fxrate as fxrate9_0_, this_.issue_detail as issue11_9_0_, this_.accrued_interest as accrued12_9_0_, this_.commission as commission9_0_, this_.commission_type as commission14_9_0_, this_.tax as tax9_0_, this_.sec_fee as sec16_9_0_, this_.client_coupon_rate as client17_9_0_, this_.client_maturity_date as client18_9_0_, this_.client_cpty_description as client19_9_0_, this_.client_cpty_settle_instr as client20_9_0_, this_.first_money as first21_9_0_, this_.coupon_frequency as coupon22_9_0_, this_.record_type as record23_9_0_, this_.destination as destina24_9_0_, this_.rr_number as rr25_9_0_, this_.processing_timestamp as processing26_9_0_, this_.agency_trade_ind as agency27_9_0_, this_.agency_principle_ind as agency28_9_0_, this_.transaction_time as transac29_9_0_, this_.issue_currency as issue30_9_0_, this_.net_price as net31_9_0_, this_.dealer_code as dealer32_9_0_, this_.business as business9_0_, this_.trade_conditions as trade34_9_0_, this_.first_money_issue_ccy as first35_9_0_, this_.amount_issue_ccy as amount36_9_0_, this_.executing_broker_cd as executing37_9_0_, this_.clearing_broker_cd as clearing38_9_0_, this_.contra_broker_cd as contra39_9_0_, this_.contra_clearing_cd as contra40_9_0_, this_.adp_trailer_cd1 as adp41_9_0_, this_.adp_trailer_desc1 as adp42_9_0_, this_.adp_trailer_cd2 as adp43_9_0_, this_.adp_trailer_desc2 as adp44_9_0_, this_.adp_trailer_cd3 as adp45_9_0_, this_.adp_trailer_desc3 as adp46_9_0_, this_.dni as dni9_0_, this_.dni_settled as dni48_9_0_, this_.depot as depot9_0_, this_.nostro as nostro9_0_, this_.num_split as num51_9_0_ from db_tracer_raw_bs_trans_stage this_ inner join db_tracer_raw_trans_stage this_1_ on this_.id=this_1_.id and this_.version_no=this_1_.version_no where this_1_.account in (?, ?) and this_1_.relationship_type=?
2005-12-15 16:48:55,136 DEBUG Loader.doQuery - result set row: 7
2005-12-15 16:48:55,136 DEBUG IntegerType.nullSafeGet - returning '23451597' as column: id0_
2005-12-15 16:48:55,136 DEBUG BigDecimalType.nullSafeGet - returning '1.000' as column: version2_0_
2005-12-15 16:48:55,136 DEBUG Loader.getRow - result row: EntityKey[com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451597}]
2005-12-15 16:48:55,152 DEBUG Loader.loadFromResultSet - Initializing object from ResultSet: [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451597}]
2005-12-15 16:48:55,152 DEBUG BasicEntityPersister.hydrate - Hydrating entity: [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451597}]
2005-12-15 16:48:55,152 DEBUG IntegerType.nullSafeGet - returning '36907581' as column: lifecycle3_8_0_
2005-12-15 16:48:55,152 DEBUG IntegerType.nullSafeGet - returning null as column: orig4_8_0_
2005-12-15 16:48:55,152 DEBUG IntegerType.nullSafeGet - returning null as column: group5_8_0_
2005-12-15 16:48:55,152 DEBUG IntegerType.nullSafeGet - returning null as column: trade6_8_0_
2005-12-15 16:48:55,167 DEBUG IntegerType.nullSafeGet - returning null as column: line7_8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'abc' as column: client8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'abc' as column: account8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'I' as column: relatio10_8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'B ' as column: tran11_8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'N ' as column: action12_8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'Q' as column: product13_8_0_
2005-12-15 16:48:55,167 DEBUG StringType.nullSafeGet - returning 'BANK' as column: client14_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning '12/09/2005 ' as column: trade15_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning '12/09/2005 ' as column: value16_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning '23451597' as column: reference8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning ' ' as column: notes8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning ' ' as column: reference19_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning null as column: blotter20_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning null as column: billing21_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning null as column: client22_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning null as column: client23_8_0_
2005-12-15 16:48:55,199 DEBUG IntegerType.nullSafeGet - returning '1201' as column: source24_8_0_
2005-12-15 16:48:55,199 DEBUG TimestampType.nullSafeGet - returning '2005-12-09 17:09:06' as column: processing25_8_0_
2005-12-15 16:48:55,199 DEBUG IntegerType.nullSafeGet - returning '15' as column: processing26_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning null as column: amend27_8_0_
2005-12-15 16:48:55,199 DEBUG StringType.nullSafeGet - returning null as column: lastmod28_8_0_
2005-12-15 16:48:55,214 DEBUG StringType.nullSafeGet - returning 'tracer' as column: lastmod29_8_0_
2005-12-15 16:48:55,214 DEBUG TimestampType.nullSafeGet - returning '2005-12-09 17:09:08' as column: lastmod30_8_0_
2005-12-15 16:48:55,386 DEBUG Loader.doQuery - done processing result set (8 rows)
2005-12-15 16:48:55,386 DEBUG AbstractBatcher.logCloseResults - about to close ResultSet (open ResultSets: 1, globally: 1)
2005-12-15 16:48:55,417 DEBUG AbstractBatcher.logClosePreparedStatement - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2005-12-15 16:48:55,417 DEBUG AbstractBatcher.closePreparedStatement - closing statement
2005-12-15 16:48:55,417 DEBUG Loader.initializeEntitiesAndCollections - total objects hydrated: 8
2005-12-15 16:48:55,433 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=2.600, id=23376608}]
2005-12-15 16:48:55,464 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36832614]
2005-12-15 16:48:55,480 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=2.600, id=23376608}]
2005-12-15 16:48:55,496 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451595}]
2005-12-15 16:48:55,496 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36907579]
2005-12-15 16:48:55,496 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451595}]
2005-12-15 16:48:55,527 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23471594}]
2005-12-15 16:48:55,542 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36927574]
2005-12-15 16:48:55,542 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23471594}]
2005-12-15 16:48:55,542 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.200, id=23371596}]
2005-12-15 16:48:55,542 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36822578]
2005-12-15 16:48:55,542 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.200, id=23371596}]
2005-12-15 16:48:55,542 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23376594}]
2005-12-15 16:48:55,589 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36832574]
2005-12-15 16:48:55,589 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23376594}]
2005-12-15 16:48:55,589 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.200, id=23376592}]
2005-12-15 16:48:55,605 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36832572]
2005-12-15 16:48:55,605 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.200, id=23376592}]
2005-12-15 16:48:55,605 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=2.100, id=23376596}]
2005-12-15 16:48:55,621 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36832598]
2005-12-15 16:48:55,621 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=2.100, id=23376596}]
2005-12-15 16:48:55,621 DEBUG TwoPhaseLoad.initializeEntity - resolving associations for [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451597}]
2005-12-15 16:48:55,621 DEBUG CollectionLoadContext.getLoadingCollection - creating collection wrapper:[com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36907581]
2005-12-15 16:48:55,621 DEBUG TwoPhaseLoad.initializeEntity - done materializing entity [com.db.eps.tracer.domain.entity.TracerRawBuySellTransStageDetail#component[id,versionNo]{versionNo=1.000, id=23451597}]
2005-12-15 16:48:55,621 DEBUG PersistenceContext.initializeNonLazyCollections - initializing non-lazy collections
2005-12-15 16:48:55,621 DEBUG DefaultInitializeCollectionEventListener.onInitializeCollection - initializing collection [com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36907581]
2005-12-15 16:48:55,621 DEBUG DefaultInitializeCollectionEventListener.onInitializeCollection - checking second-level cache
2005-12-15 16:48:55,636 DEBUG DefaultInitializeCollectionEventListener.onInitializeCollection - collection not cached
2005-12-15 16:48:55,636 DEBUG Loader.loadCollection - loading collection: [com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36907581]
2005-12-15 16:48:55,636 DEBUG AbstractBatcher.logOpenPreparedStatement - about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2005-12-15 16:48:55,636 DEBUG SQL.log - select issues0_.lifecycle_id as lifecycle3_1_, issues0_.id as id1_, issues0_.id as id0_, issues0_.issue_type_id as issue2_14_0_, issues0_.lifecycle_id as lifecycle3_14_0_, issues0_.lifecycle_stage_id as lifecycle4_14_0_, issues0_.message as message14_0_, issues0_.task_id as task6_14_0_, issues0_.create_time as create7_14_0_, issues0_.close_time as close8_14_0_, issues0_.validation_exception as validation9_14_0_ from db_epics_issue issues0_ where issues0_.lifecycle_id=? order by issues0_.id
Hibernate: select issues0_.lifecycle_id as lifecycle3_1_, issues0_.id as id1_, issues0_.id as id0_, issues0_.issue_type_id as issue2_14_0_, issues0_.lifecycle_id as lifecycle3_14_0_, issues0_.lifecycle_stage_id as lifecycle4_14_0_, issues0_.message as message14_0_, issues0_.task_id as task6_14_0_, issues0_.create_time as create7_14_0_, issues0_.close_time as close8_14_0_, issues0_.validation_exception as validation9_14_0_ from db_epics_issue issues0_ where issues0_.lifecycle_id=? order by issues0_.id
2005-12-15 16:48:55,652 DEBUG AbstractBatcher.getPreparedStatement - preparing statement
2005-12-15 16:48:55,652 DEBUG IntegerType.nullSafeSet - binding '36907581' to parameter: 1
2005-12-15 16:48:55,902 DEBUG AbstractBatcher.logOpenResults - about to open ResultSet (open ResultSets: 0, globally: 0)
2005-12-15 16:48:55,917 DEBUG Loader.handleEmptyCollections - result set contains (possibly empty) collection: [com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36907581]
2005-12-15 16:48:55,917 DEBUG CollectionLoadContext.getLoadingCollection - uninitialized collection: initializing
2005-12-15 16:48:55,933 DEBUG Loader.doQuery - processing result set
2005-12-15 16:48:55,933 DEBUG Loader.doQuery - result set row: 0
2005-12-15 16:48:55,933 DEBUG IntegerType.nullSafeGet - returning '5859665' as column: id0_
2005-12-15 16:48:55,933 DEBUG Loader.getRow - result row: EntityKey[com.db.eps.common.taskservice.service.client.IssueDetail#5859665]
2005-12-15 16:48:55,933 DEBUG Loader.loadFromResultSet - Initializing object from ResultSet: [com.db.eps.common.taskservice.service.client.IssueDetail#5859665]
2005-12-15 16:48:55,949 DEBUG BasicEntityPersister.hydrate - Hydrating entity: [com.db.eps.common.taskservice.service.client.IssueDetail#5859665]
2005-12-15 16:48:55,949 DEBUG IntegerType.nullSafeGet - returning '375' as column: issue2_14_0_
2005-12-15 16:48:55,949 DEBUG IntegerType.nullSafeGet - returning '375' as column: issue2_14_0_
2005-12-15 16:48:55,949 DEBUG IntegerType.nullSafeGet - returning '36907581' as column: lifecycle3_14_0_
2005-12-15 16:48:55,949 DEBUG IntegerType.nullSafeGet - returning '1871' as column: lifecycle4_14_0_
2005-12-15 16:48:55,949 DEBUG StringType.nullSafeGet - returning null as column: message14_0_
2005-12-15 16:48:55,949 DEBUG IntegerType.nullSafeGet - returning null as column: task6_14_0_
2005-12-15 16:48:55,964 DEBUG TimestampType.nullSafeGet - returning '2005-12-09 17:09:08' as column: create7_14_0_
2005-12-15 16:48:55,964 DEBUG TimestampType.nullSafeGet - returning null as column: close8_14_0_
2005-12-15 16:48:55,964 DEBUG StringType.nullSafeGet - returning '1201' as column: validation9_14_0_
2005-12-15 16:48:55,964 DEBUG IntegerType.nullSafeGet - returning '36907581' as column: lifecycle3_1_
2005-12-15 16:48:55,964 DEBUG Loader.readCollectionElement - found row of collection: [com.db.eps.tracer.domain.entity.TracerRawTransStageDetail.issues#36907581]
2005-12-15 16:48:55,980 DEBUG AbstractBatcher.logCloseResults - about to close ResultSet (open ResultSets: 1, globally: 1)
2005-12-15 16:48:55,980 DEBUG AbstractBatcher.logClosePreparedStatement - about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
2005-12-15 16:48:55,980 DEBUG AbstractBatcher.closePreparedStatement - closing statement
2005-12-15 16:48:55,980 DEBUG JDBCContext.afterNontransactionalQuery - after autocommit
com.db.eps.common.persistence.DataAccessException: org.hibernate.PropertyAccessException: exception getting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of com.db.eps.tracer.domain.entity.TracerRawTransStageId.?
at com.db.eps.common.persistence.hibernate.support.AbstractHibernateDAO.convertToDataAccessException(AbstractHibernateDAO.java:80)
at com.db.eps.common.persistence.hibernate.support.AbstractHibernateDAO.process(AbstractHibernateDAO.java:50)
at com.db.eps.common.persistence.hibernate.support.processors.GenericHibernateCommandProcessor.process(GenericHibernateCommandProcessor.java:24)
at com.db.eps.tracer.persistence.hibernate.HibernateDynamicQuery.submitQueryForRawStageTransactions(HibernateDynamicQuery.java:338)
at com.db.eps.tracer.persistence.hibernate.HibernateDynamicQuery.executeQueryForTransaction(HibernateDynamicQuery.java:205)
at com.db.eps.tracer.persistence.hibernate.HibernateDynamicQuery.submitQuery(HibernateDynamicQuery.java:88)
at com.db.eps.tracer.persistence.RawTransactionDynamicQueriesTest.testGetAllStagedBSTransactionsWithSplits(RawTransactionDynamicQueriesTest.java:320)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:86)
Caused by: org.hibernate.PropertyAccessException: exception getting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) getter of com.db.eps.tracer.domain.entity.TracerRawTransStageId.?
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(PojoComponentTuplizer.java:42)
at org.hibernate.type.ComponentType.getPropertyValues(ComponentType.java:257)
at org.hibernate.type.ComponentType.getHashCode(ComponentType.java:158)
at org.hibernate.engine.EntityKey.getHashCode(EntityKey.java:68)
at org.hibernate.engine.EntityKey.<init>(EntityKey.java:41)
at org.hibernate.engine.PersistenceContext.getCollectionOwner(PersistenceContext.java:674)
at org.hibernate.loader.Loader.readCollectionElement(Loader.java:660)
at org.hibernate.loader.Loader.readCollectionElements(Loader.java:370)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:314)
at org.hibernate.loader.Loader.doQuery(Loader.java:412)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1434)
at org.hibernate.loader.collection.OneToManyLoader.initialize(OneToManyLoader.java:111)
at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:488)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1430)
at org.hibernate.collection.AbstractPersistentCollection.forceInitialization(AbstractPersistentCollection.java:280)
at org.hibernate.engine.PersistenceContext.initializeNonLazyCollections(PersistenceContext.java:796)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
at org.hibernate.loader.Loader.doList(Loader.java:1593)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)
at com.db.eps.tracer.persistence.hibernate.HibernateDynamicQuery$2.executeIn(HibernateDynamicQuery.java:345)
at com.db.eps.common.persistence.hibernate.support.AbstractHibernateDAO.process(AbstractHibernateDAO.java:45)
... 28 more
Caused by: java.lang.ClassCastException
at com.db.eps.tracer.domain.entity.TracerRawTransStageId$$BulkBeanByCGLIB$$a9774c6b.getPropertyValues(<generated>)
at net.sf.cglib.beans.BulkBean.getPropertyValues(BulkBean.java:86)
at org.hibernate.tuple.PojoComponentTuplizer.getPropertyValues(PojoComponentTuplizer.java:39)
... 53 more
Process finished with exit code -1
|