Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OneToOne BIDIRECTIONAL with JoinTable #180

Open
andyjefferson opened this issue Mar 16, 2017 · 2 comments
Open

Support OneToOne BIDIRECTIONAL with JoinTable #180

andyjefferson opened this issue Mar 16, 2017 · 2 comments

Comments

@andyjefferson
Copy link
Member

Refer to datanucleus/datanucleus-core#196 and https://en.wikibooks.org/wiki/Java_Persistence/OneToOne#Mapping_a_OneToOne_Using_a_Join_Table if wanting to provide such a thing. This is not part of the JPA spec, and would follow what we already do for a N-1 UNI relation with join table (where it does make more sense to allow it).

@andyjefferson
Copy link
Member Author

This likely works with some 1-1 uni relations, since we map them to N-1 uni internally (and that allows join table). Needs testcase(s) defining with the precise situation for this to be looked at further

@andyjefferson
Copy link
Member Author

1-1 uni join table works fine.

This issue should be for 1-1 BI JOIN TABLE relation.

@andyjefferson andyjefferson changed the title Support OneToOne with JoinTable Support OneToOne BIDIRECTIONAL with JoinTable Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant