Hi Daniele

I just can post an example of the InSubQueryQualifier, but this code
is very old, i'm not sure
if the current version of the InSubQueryQualifier of Bernards source
needs the same steps:

in Application.java during startup:

// need by http://lists.apple.com/archives/webobjects-dev/2005/Apr/msg00357.html
EOQualifierSQLGeneration.Support.setSupportForClass(new
InSubqueryQualifierSupport(), InSubqueryQualifier.class);

then the qualifier example.

// ... id in (select doctorFID from vispriority where product=$product)

EOKeyValueQualifier qualProduct = new EOKeyValueQualifier("product",
EOQualifier.QualifierOperatorEqual,product);

InSubqueryQualifier qualifier =  new InSubqueryQualifier("id",
"VisPriority", "doctorFID", qual);

hope that gives you a starting point ...
oliver


On 9/24/07, Chuck Hill <[EMAIL PROTECTED]> wrote:
>
> On Sep 24, 2007, at 5:42 AM, Daniele Corti wrote:
>
> >
> >
> > 2007/9/21, Chuck Hill <[EMAIL PROTECTED]>: See Pierre
> > Bernards excellent "Qualifiers Additions" at http://
> > www.bernard-web.com/pierre/webobjects/code.html
> >
> > I think the ExistsInRelationshipQualifier is the one you want for
> > this.
> >
> > Thank you Chuck! Do you know if there are some Examples for the use
> > of these Qualifiers?
>
> No, just the JavaDocs.
>
> Chuck
>
>
>
> > On Sep 20, 2007, at 5:57 AM, Daniele Corti wrote:
> >
> > > Hi all,
> > >     I was looking for a way to fetch an object that have empty
> > > relations using EOQualifiers
> > >
> > >
> > > I used this qualifier:
> > >
> > > keyValueQualifier = new EOKeyValueQualifier("activations",
> > > EOQualifier.QualifierOperatorEqual , EOEnterpriseObject.NullValue);
> > >
> > > but it doesn't seem to work. activations is a toMany relation of
> > > the fetched object
> > >
> > > --
> > > Daniele Corti
> > > AIM: S0CR4TE5
> > > Messenger: [EMAIL PROTECTED]
> > >
> > > --
> > > Computers are like air conditioners -- they stop working properly
> > > if you open
> > > WINDOWS
> > >
> > > --
> > > What about the four lusers of the apocalypse? I nominate:
> > > "advertising", "can't log in", "power switch" and "what backup?"
> > > --Alistair Young
> > >  _______________________________________________
> > > Do not post admin requests to the list. They will be ignored.
> > > Webobjects-dev mailing list      ( [email protected])
> > > Help/Unsubscribe/Update your Subscription:
> > > http://lists.apple.com/mailman/options/webobjects-dev/chill%
> > > 40global-village.net
> > >
> > > This email sent to [EMAIL PROTECTED]
> >
> > --
> >
> > Practical WebObjects - for developers who want to increase their
> > overall knowledge of WebObjects or who are trying to solve specific
> > problems.
> > http://www.global-village.net/products/practical_webobjects
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Daniele Corti
> > AIM: S0CR4TE5
> > Messenger: [EMAIL PROTECTED]
> >
> > --
> > Computers are like air conditioners -- they stop working properly
> > if you open
> > WINDOWS
> >
> > --
> > What about the four lusers of the apocalypse? I nominate:
> > "advertising", "can't log in", "power switch" and "what backup?"
> > --Alistair Young
>
> --
>
> Practical WebObjects - for developers who want to increase their
> overall knowledge of WebObjects or who are trying to solve specific
> problems.
> http://www.global-village.net/products/practical_webobjects
>
>
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/oliver.egger%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>


-- 
oliver egger

neu seit 17.9.2007: bertastrasse 4, 8003 zürich
http://www.egger-loser.ch
mobile +41765795005
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to