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: Failed to create ScrollPage by getScrollPageInstanceWithTota
PostPosted: Tue Oct 20, 2009 6:54 am 
Newbie

Joined: Fri Mar 02, 2007 5:01 am
Posts: 6
Hi all. I have created some classes to manage pagination using ScrollableResults. Works fine, but when my entity has a composite id fails. This is my Entity:

@Entity
public final class MyEntity implements java.io.Serializable{
private MyEntityId id;
private String field1;
private String field2;
}

@Embeddable
public final class MyEntityId implements java.io.Serializable{
private String property1;
private boolean property2;
}

I'm trying to execute an empty criteria, to get all records. When I execute:

criteria.scroll(ScrollMode.SCROLL_SENSITIVE);

I get: Failed to create ScrollPage: could not resolve property: property1 of: com.mycompany.mypackage.MyEntity

My Database engine is Oracle 9, that supports scrollable resultsets. I'm using annotated entities and Spring Session Factory to manage hibernate.

Any ideas?


Top
 Profile  
 
 Post subject: Re: Failed to create ScrollPage by getScrollPageInstanceWithTota
PostPosted: Tue Oct 20, 2009 7:16 am 
Newbie

Joined: Fri Mar 02, 2007 5:01 am
Posts: 6
Forget it. I've found the error. The order by was wrong.


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.