Re: [Hibernate-devel] Re: Select queries, queries by criteria, query by example

2002-07-31 Thread Christian Meunier
> I *do* think "query by example" is pretty cool - but could you tell me > how they distinguish a null value from an unset property ... or a zero > primitive value from an unset property? I never figured that out... > > thoughts? I am pretty sure they assume that any Null value / zero primitive is

[Hibernate-devel] Re: Select queries, queries by criteria, query by example

2002-07-31 Thread Gavin_King/Cirrus%CIRRUS
>Query By Criteria and Query By Example >(Query By example could use Query by criteria internally) > >Here's an example for queryByCriteria >Query query = new Query(); >Query.addBetweenCriteria("age", new Integer(10), new Integer(20)); >Query.addOrderByCriteria("name"); > >QueryByExample: >Custome