Dynamic Queries and EJB-QL/EJB 2.0
843829Dec 12 2001 — edited Dec 20 2002Hi there,
I'm thinking about searchability of component-based systems. Of course
I've looked at the EJB-QL part of the 2.0 spec. But all I find is that I
can go and declare static finders using EJB-QL in the descriptor.
Simple question: I have boolean combinations of queries coming in, as
defined by a user typing things into a search form like "a and b" or "c
and not d". How am I supposed to map this onto an EJB 2.0 based
implementation? Anticipate all possible boolean query combinations?
Declare a combinatorial number of EJB-QL finder expressions? For sure
not.
But what's the answer? "The 2.0 spec sucks..."?
Any comments are appreciated.
-- Axel