Although it may be technically correct, but from conceptual database
modeling point of view the comparison ($1 is null... ) is questionable.
> -----Original Message-----
> From: Magnus Rydin [SMTP:[EMAIL PROTECTED]]
> Sent: &yod;&vav;&fmem; &shin;&yod;&shin;&yod; 08 &yod;&vav;&nun;&yod; 2001 14:37
> To: Orion-Interest
> Subject: SV: Dynamic finders
>
> something like
> .. ($1 is null OR $1=$field) AND ...
>
> > -----Ursprungligt meddelande-----
> > Fran: Stefan Paun [ <mailto:[EMAIL PROTECTED]>]
> > Skickat: den 8 juni 2001 07:16
> > Till: Orion-Interest
> > Amne: Dynamic finders
> >
> >
> >
> >
> > Does anybody have a solution for implementing a finder that
> > takes some
> > parameters, but searches taking into account only the ones
> > that are not
> > null?
> > Basically, this would be used to support a search page in
> > which the user
> > can choose to fill or not some fields of the search criteria.
> > I know that probably the best way to do this is using a
> > Session Bean and
> > JDBC, but is there a way to implement it using CMP Entity finders (in
> > EJB1.1)?
> >
> > Thanks,
> > Stefan
> >
> >
>