Skip to main content

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

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.


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?

Previous Topic:Fetch API cursor in Eclipselink lazy loading
Next Topic:QueuableWeakCacheKey growing endlessly
Goto Forum:

Current Time: Tue Oct 16 17:20:24 GMT 2018

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

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

Back to the top