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

  • SEARCH
  • Home
  • 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 6473843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:30:53+00:00 2026-05-25T06:30:53+00:00

Lets say we have the following entities. Entity A Entity B Entity C The

  • 0

Lets say we have the following entities.

  • Entity A
  • Entity B
  • Entity C

The hierarchy

  • A has many Bs.
  • B has many Cs Each
  • C has a value of string called name.

I have three view controller each displaying a list of entities. First view displays Entities A. Upon clicking on entity A, it lists all the entities B in that particular A. Upon clicking on B, it lists all the entities C in that particular B.

I add an A FirstA. First A has 3 B’s. Each of those B’s has 7 Cs.
This currently exists in core data. Lets say I want to add a new C called ‘marvelous_C’ into an arbitrary B.

Now here is the part that confuses me the most. Currently in my mind, i would add it like this. List out all the As. (in this case 1). Look at all the B’s FirstA has until i find the B i want to add marvelous_C to. I find this b, then append another C to the list of already existing C’s. Save in core data.

This to me seems rather unwise. Is there a better way to do this? Is there a model i can follow for this? Lets say im looking at the last view (the one that displays entities C in a particular B). is there anyway to add it to that particular set without having to go through the entire hierarchy?

this post may be confusing. standing by for any clarifications. thanks!

  • 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-05-25T06:30:54+00:00Added an answer on May 25, 2026 at 6:30 am

    In your top view controller displaying the Cs where you want to add another one, just keep a reference to the current B. This could be a @property of the view controller in question.

    This should be the simplest solution.

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

Sidebar

Related Questions

Lets say I have the following code: abstract class Animal case class Dog(name:String) extends
Lets say i have following class public class abc { int id; string name;
Lets say I have the following one-to-many relationship: Site has many Users User belongs
Lets say I have the following DataMapper resources: class Post include DataMapper::Resource has n,
Lets say I have the following mapping: <hibernate-mapping package=mypackage> <class name=User table=user> <id name=id
Lets say I have the following data: <XmlDataProvider x:Key=Values> <x:XData> <folder name=C:> <folder name=stuff
I have the following 2 entities: @Entity(name = Employee) @Table(name = EMPLOYEE) public class
Lets say I have following: library(XML) my.xml <- ' <tv> <show> <name>Star Trek TNG</name>
Lets say you have the following entities in your database: Image http://lh6.ggpht.com/_UpGtM3B8h1U/Sa7SqfWmgDI/AAAAAAAAAHE/epqtm7EnoFg/test.gif You want
Lets say we have the following code: #include <iostream> #include <string> struct A {

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.