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

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

Closed
juneng603 opened this issue Aug 16, 2012 · 5 comments
Closed

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

juneng603 opened this issue Aug 16, 2012 · 5 comments
Milestone

Comments

@juneng603
Copy link

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

@mevivs
Copy link
Collaborator

mevivs commented Aug 16, 2012

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

-Vivek

@ghost ghost assigned xamry Aug 16, 2012
@mevivs
Copy link
Collaborator

mevivs commented Aug 21, 2012

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

@mevivs
Copy link
Collaborator

mevivs commented Jan 23, 2013

Target for 2.4 release.

@mevivs
Copy link
Collaborator

mevivs commented Apr 25, 2013

Releasing with 2.5

@mevivs
Copy link
Collaborator

mevivs commented May 8, 2013

Please verify.

-Vivek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants