Jakob Braeuchi wrote:
hi vadim,

Vadim Gritsenko schrieb:

Brian McCallister wrote:

I think I'd prefer to see the query stuff there now cleaned up to do what you need rather than have another implementation.


QueryByCriteria is too complex for what I need. I need a query where criteria has very strict structure: it's list of object fields values. This query covers two use cases:

  * Query By Example (not by identity!):

    A a = new A();
    a.name = 'John';
    broker.getCollectionByQuery(QueryFactory.newQuery(a));


there's already a method QueryFactory#newQueryByExample() available to build a query based on an example object.

Yes, I know. In my branch this method is implemented using my QueryByFKCriteria, so it can use stored procedures instead of plain SQL only.



btw. QueryFactory#newQuery(Object example_or_identity) has been deprecated in is replaced either by newQueryByIdentity or newQueryByExample

That's Ok.

Thanks,
Vadim


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to