[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Customizing @ManyToOne?
|
- From: Tim Hollosy <hollosyt@xxxxxxxxx>
- Date: Fri, 17 Jul 2009 20:42:24 -0400
- Delivered-to: eclipselink-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=WIlJYmiSzSw/3pfRD5ofahzZp8abSYOqWkJpcYIo6i8=; b=kcbjtO4W6MLfQ1tbNTmivF4W1vY1F6M7ZffeKJdTDcakS98JVSiwoHdmfPxmNQVbjk BQA8VCcKQoEgizLlp5tkgUJNaDyFPQiHGPWK2SdrolPnXsbiuskeL2zd2uFhs8zZuiyz 75QEkUNCixr/4szt1ZlS0OfCUGcHfUPfSQR5g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Q4J8w1d0Vtb8gwF3nrunZuDdiIhiIgpOen8/Js5Pg+40DNNVdxdtlJeFPXUlyvbphH gPmN8bk3QOs3erendHbPi8necfJSIEUcQvOdfmre5Qr1iuoBwTOedQEPqRDSXTR6VEl7 5dR1+CB4dUYorJMtvnOzg2+S4q44WvbVJ17BE=
I'm pretty sure you can't do this, have you considered using a
database view as a workaround?
./tch
On Fri, Jul 17, 2009 at 4:51 PM, Laird Nelson<ljnelson@xxxxxxxxx> wrote:
> I have a VERY complicated join in a legacy database I can't change. I would
> like a child object in this context to be able to navigate to his parent via
> a @ManyToOne operation. However, there is no direct link from the child to
> the parent. In SQL, I need to go through several INNER JOIN clauses to
> ultimately arrive at the proper destination.
>
> How would I go about customizing this relationship in EclipseLInk? Is there
> somewhere I can tell EclipseLink that when someone calls child.getParent() I
> would like it to run this large query instead?
>
> I had a look at
> http://wiki.eclipse.org/Customizing_the_EclipseLink_Application_%28ELUG%29
> but didn't really know what to look for.
>
> Thanks,
> Laird
>
> _______________________________________________
> eclipselink-users mailing list
> eclipselink-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/eclipselink-users
>
>