On Fri, Aug 22, 2008 at 11:09 AM, Rickard Öberg <[EMAIL PROTECTED]> wrote: > Hi! > > I have a couple of cases where I want the domain model to return Query, > but it should be based on an internal ManyAssociation, which I don't > want to expose to the client. For this purpose it would be great if I > could do: > Query<SomeEntity> query = queryBuilderFactory.newQuery(entityAssociation); > > and then do the usual Query things on it. This would make it easy to > sort/page a ManyAssociation in the model without having to do a real > query which goes to the EntityFinder.
1. I guess SomeEntity.class is needed as input in the method... 2. We used to have support for querying Lists before. What happened to that? Since if we do, then the above becomes a convenience method to; QueryBuilder<SomeEntity> qb = factory.newQueryBuilder( SomeEntity.class, assoc ); qb.where( all() ); // maybe even the default Query<SomeEntity> q = qb.newQuery(); Cheers Niclas _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

