From: Christoph S. <ch...@mc...> - 2002-09-18 14:01:14
|
Hi Gavin! ----- Original Message ----- From: "Gavin King" <ga...@ap...> To: "hibernate list" <hib...@li...> Sent: Thursday, September 12, 2002 11:16 AM Subject: [Hibernate] New features: Hibernate ODMG + collection filters > only the elements you are interested in. Accordingly Ive added filtering > methods to the Session interface like: > > filteredCollection = session.filter(collection, query) > > A filter is just a query where you can refer to "this", the collection > element. So, for example: > > blackCats = session.filter( cat.getKittens(), "where this.color='black' > order by this.name" ); > rivals = session.filter( cat.getPotentialMates(), "select this.mate" ); > Could you also add a method session.filer(Collection, Query)? regards chris |