persistence@glassfish.java.net

Re: _at_OneToMany without join table with TopLink

From: Wonseok Kim <guruwons_at_gmail.com>
Date: Wed, 19 Dec 2007 01:24:57 +0900

My HTML message included the link to the GlassFish issue, but anyway I
resend it again.
https://glassfish.dev.java.net/issues/show_bug.cgi?id=2049

And JPA 2.0 items are now being discussed in JSR 317 expert group mailing
list.
Unidirectional many-to-one mapping with join column is already discussed so
I think it will be added at 2.0 spec level.

However, except bidirectional relationship or James' solution there seems to
be no way at this time. :-(
-Wonseok

On Dec 18, 2007 10:15 PM, Aleksei Valikov <aleksei.valikov_at_gmail.com> wrote:

> Hi.
>
> > The default mapping rule for uni-directional one-to-many is using join
> table
> > (spec content).
>
> Thanks. What I want is obviously uni-directional one-to-many using join
> column
>
> > Please add @ManyToOne to the other side to make it bi-directional
> > relationship.
> >
> > There is already an enhancement request issue for using join column for
> > uni-directional one-to-many and it will be added in JPA 2.0 spec.
>
> Is a list of such issues maintained somewhere?
>
> Thanks again for replying.
>
> Bye.
> /lexi
>