siena

Play! + Siena + GAE + JUnit

I am trying to get some basic unit tests up and running on the Play! framework using the Siena persistence library with GAE as the intended deployment target. I have the project configured properly and can deploy the app to GAE. I created a basic domain object: public class User extends Model { @Id(Generator.AUTO_INCREMENT) pu...

How can I do paging with @OneToMany collections

Suppose I have a Post entity and a Comment entity and a one to many relationship: @Entity class Post { ... @OneToMany List<Comment> comments; ... } How can I achieve paging like this: Post post = //Find the post. return post.getComments().fetch(100, 10); // Find the 11th page (page size 10); Is it possible to emulat...