ebean icon indicating copy to clipboard operation
ebean copied to clipboard

Mapping - Add support for OneToMany JoinTables

Open rbygrave opened this issue 12 years ago • 3 comments

Refer: http://www.java2s.com/Tutorial/Java/0355__JPA/OneToManyJoinTableSetup.htm

Hi all,

On further investigation, I'm pretty sure that what I'm trying to do is legit. It's a unidirectional oneToMany and I can see some examples of using JPA to set it up:

http://www.java2s.com/Tutorial/Java/0355__JPA/OneToManyJoinTableSetup.htm http://tadtech.blogspot.com/2007/09/hibernate-annotation-one-to-many-join.html

In Hibernate, for example, unidirectional appears to be the preferred option.

I thought it might be that the Car had to specify all the details of the join, so I tried this: ...

rbygrave avatar Apr 30 '14 11:04 rbygrave

Has anything changed? As far as I can see version "8.4.1" still doesn't support OneToMany with JoinTable...

konradr25 avatar Jan 07 '17 16:01 konradr25

This specific issue is still open yes.

rbygrave avatar Jan 08 '17 00:01 rbygrave

Done, closing.

rbygrave avatar Feb 20 '18 01:02 rbygrave