Hi,
I'm new to OpenJPA. Just few background words before my first question.
My walk to OpenJPA was Hibernate when it was early alpha on
persistence with annotations, then CakePHP for the shake of simplicity
and now OpenJPA because :
* fetch group. I didn't know the name before I read OpenJPA's doc, but
I need this and did that by hand before ... I found I won't feel
lonely anymore when I read that part of the doc :-)
* it is standard
* it look really clean
* I need more power than CakePHP or Hibernate can provide
* I'm more than happy to come back to Java (leaving PHP) on that
part :-)
So, I have a question on one-sided @OneToMany relationship.
Chapter 7.7.7 of the doc handle that case, but I would like to avoid
using specific things when possible.
Why do I have to use @ElementJoinColumn annotation that apparently
(looking to imports) is not from JPA but is part of OpenJPA ?
Does it mean that this kind of very common @OneToMany relation is not
part of JPA ?
Did I use the wrong annotation (@ElementJoinColumn), is there a
standard JPA way of doing that ?
If an example is needed to explain, let's consider a Command that have
many CommandLine. One CommandLine can be under one and only one Command.
So this example is typically handled by a one-sided one-to-many
relation where we'll found a command_id column in the CommandLine table.
Any feedback appreciated !
JBB.