Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8602439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:05:09+00:00 2026-06-12T02:05:09+00:00

I have a CoreData model that looks like this: Abstract Entity Entity 1 Entity

  • 0

I have a CoreData model that looks like this:

  • Abstract Entity
    • Entity 1
    • Entity 2
      • Entity 3

“Abstract Entity” is the top entity in the hierarchy. “Entity 1” and “Entity 2” are peer sub entities of “Abstract Entity”. “Entity 3” is a sub entity of “Entity 2”.

The app is live in the App Store, so any amendments to the model must retain all existing data. Unfortunately, I now need to re-arrange the model hierarchy to look like this:

  • Abstract Entity
    • Entity 2
      • Entity 3
        • Entity 1

Is there any way of achieving this that doesn’t involve creating a new “Entity 4” entity and writing a function that will convert all “Entity 1” data into “Entity 4” format? I’d rather not end up with a crufty hierarchy like this:

  • Abstract Entity
    • Entity 1
    • Entity 2
      • Entity 3
        • Entity 4

The only way I’ve come up with of avoiding the above is to copy all of the properties I need from entities 2 and 3 into 1 and just ignore the hierarchy problem entirely, which is a bad solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:05:11+00:00Added an answer on June 12, 2026 at 2:05 am

    I’d suggest you read up on and create a custom mapping model.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data-structure (in plist) that looks something like this: What i have
I have a pretty simple little schema that looks like this: Trail --> Segment
I have a problem sorting join entities with CoreData. I've made a model like
I have set up a Core Data model that includes an entity, Item with
In my core data model I have a Person entity that has a to
I have a sqlite DB created by my CoreData model automatically, but my app
My Core Data model looks like this: alt text http://fwdr.org/lg4q The players relationship of
My CoreData model have 3 entities with to-many relationships: job <<-->> group <<-->> person
I have one app in the store with CoreData model, and i want change
My Core Data model looks like this: article <--->> category Is it even remotely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.