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

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: using ScrollableResults with mapping which has composite id
PostPosted: Thu Nov 06, 2003 3:53 am 
Newbie

Joined: Thu Nov 06, 2003 3:37 am
Posts: 1
Hi..

i'm trying use ScrollableResults with the following snippet of my mapping file :-

<composite-id>
<key-property name="workflow_id" length="40" >
<column name="workflow_id" sql-type="varchar(40)" not-
null="true"/>
</key-property>
<key-property name="version" >
<column name="version" sql-type="float" not-null="true"/>
</key-property>
</composite-id>

whenever i perform a query, (at the same time using ScrollableResults) on my table has more than 1 record with either 1 of the primary key having the same value, 1 of the following problem will occur:-

1. hit an ObjectNotFoundException
2. ScrollableResults will only be able to extract 1 row of record..

is there a way out? Please help...i'm clueless.. Thanks!!


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

All times are UTC - 5 hours [ DST ]


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

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