Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Customizing @ManyToOne?

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
>
>


Back to the top