Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[Question] how to persist multiple tables from a single entity? #103

Closed
junyoungkim opened this Issue · 5 comments

4 participants

Todd Junyoung Kim Vivek Mishra Amresh kkmishra
Todd Junyoung Kim

hi, I am a beginner to use a Kundera library.

From our needs,
We want to use a single entity to persist into multiple tables.

from jpa spec,
there are @SecondaryTable, @SecondaryTables annotations for this one.

but, in my test, Kundera doesn't support it yet.

Is there another way to this?

thanks

-- Henry

Vivek Mishra
Collaborator

Hi,
Yes. Kundera does not support it yet. IT is not possible with a singly entity.

-Vivek

Amresh xamry was assigned
Vivek Mishra
Collaborator

Hi,
One way to achieve this is via One-To-One mapping. Somehow "sharedByPrimaryKey" is not working properly. Till the time i believe you can go ahead with One-To-One ForeignKey mapping case, and you need to explicitly set the same ID in both entities.

I will get back to you, once i get "SharedByPrimaryKey" case fixed.

-Vivek

Vivek Mishra
Collaborator

Target for 2.4 release.

Vivek Mishra
Collaborator

Releasing with 2.5

Vivek Mishra
Collaborator

Please verify.

-Vivek

Vivek Mishra mevivs was assigned
kkmishra kkmishra was assigned
Vivek Mishra mevivs closed this
kkmishra kkmishra was unassigned by junyoungkim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.