Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Copying Tenant Data
Copying Tenant Data [message #1739595] Wed, 03 August 2016 07:57
Ryan Bennetts is currently offline Ryan BennettsFriend
Messages: 1
Registered: September 2014
Junior Member
Hello

I'm using @Multitenant and @TenantDiscriminatorColumn to achieve multi-tenancy in my application.

I would like to be able to create a new tenant from an existing one by copying all data. Does Eclipselink have a facility for this?

I've looked around and it seems that most recommendations are to either

1) load the entire object graph, reset the ids of every entity, and then persist them. I suppose I could try this by changing the tenant property in between loading and persisting.

or

2) create a deep copy (via clone() or serialization) and then persist the copied objects.

Is there nothing in Eclipselink which can handle this for me? Has anyone done something similar?

Cheers.
Previous Topic:No [ManagedType] type... SpringData app trying to move from Hibernate
Next Topic:Cursor in Eclipselink lazy loading
Goto Forum:
  


Current Time: Tue Dec 12 18:10:38 GMT 2017

Powered by FUDForum. Page generated in 0.01398 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software