From: Max R. A. <max...@jb...> - 2006-06-01 11:54:01
|
On Thu, 01 Jun 2006 12:45:49 +0200, Christian Bauer = <chr...@jb...> wrote: > > On Jun 1, 2006, at 12:31 PM, Sylvain Vieujot wrote: > >> CompassHits hits =3D queryBuilder.bool() .addMust( queryBuilder.term >> ("name", "jack") ) .addMustNot( queryBuilder.term("familyName", >> "london") ) .toQuery() .addSort("familyName", >> CompassQuery.SortPropertyType.STRING) .addSort("birthdate", >> CompassQuery.SortPropertyType.INT) .hits(); > > (Note: Compass is a fork of the Hibernate codebase) > This looks to me like a new Criterion implementation, the rest is > regular Criteria API. But it needs an alternative rendering + loader. Hence my ref to exposing= = CustomQuery. -- = -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate ma...@hi... http://hibernate.org JBoss Inc max...@jb... |