4 Replies Latest reply on Jul 19, 2009 11:39 PM by Shervin Asgari

    How to specify a query for lazy initialized collection

    Philip Murphy Newbie

      Is it possible to specify the query that is used to initialize a lazy initialized collection within an entity? Also, is is possible to specify this for just a particular conversation/page etc?

      So, for example, I have an entity called Foo which contains a collection of Bar entities which are lazily initialized. When I specify the following EL expression I want the Bar entities returned in a specified order defined by some query.

      1. {foo.bars}

      For other pages I don't want to place this query restriction on the bars collection to maintain performance.