-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem with @OneToMany in combination with @BatchSize
PostPosted: Thu Mar 13, 2008 4:02 am 
Beginner
Beginner

Joined: Wed Jan 16, 2008 8:16 am
Posts: 23
When I implement following code fragment, hibernate doesnt use batch fetching.

Code:
class Entity {

  @OneToMany(mappedBy = "Reference")
  @BatchSize(size = 10)
  private List<Reference> references;

}


After playing around I removed the mappedBy attribute. So, hibernate uses batch fetching, but could not quess the foreign key attribute of the table - of course.

I hope you can help,
thx in advance,
michi


Top
 Profile  
 
 Post subject: got the problem - scrollable result sets
PostPosted: Thu Mar 13, 2008 10:36 am 
Beginner
Beginner

Joined: Wed Jan 16, 2008 8:16 am
Posts: 23
for iteration over the resultset I used scrollable result sets. as far as I can recognize they don't work with batch-size.


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

All times are UTC - 5 hours [ DST ]


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

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