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 1111675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:35:07+00:00 2026-05-17T02:35:07+00:00

I have Customer object and Loan object. It is a one-to-many relationship (Customer <–>>

  • 0

I have Customer object and Loan object. It is a one-to-many relationship (Customer <–>> Loan). Each loan has exactly 5 type of Payoff plans (exactly 5 and will not change for the next 100 years) for customer to select and to see the payment projection. Each Payoff plan consist of type, initial-payment, monthly-payment, interest, number-installments, total-payment, total-interest and payoff-date. What’s the best way to model the Payoff object?

Option 1:

Each Loan has five relationship to Payoff object representing the five different payoff plan. i.e. inside Loan object, there are 5 relationships payoffPlanA, payoffPlanB, payoffPlanC, payoffPlanD, payoffPlanE to Payoff object.

Option 2:

Each loan has a one-to-many relationship (Loan <–>> Payoff). To obtain a particular Payoff plan, the app will check from the list of Payoff objects for the type attribute of Payoff object. For example, for the app to display the content of Payoff Plan C, the app will need to traverse the list of Payoff objects for the loan and check if the type is Plan C, then retrieve the details.

Are there other options? 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-17T02:35:08+00:00Added an answer on May 17, 2026 at 2:35 am

    It doesn’t sound to me like the Payoff Plans are actually data. They sound like chunks of logic that will operate on the data supplied by Customer and Loan objects. In other words, the logic of each the five plan types is generic and only the provided data produce different outputs.

    If so, then you probably don’t need or want Core Data entities representing the Payoff Plans. Instead, you should create ordinary i.e. non-managed objects, that accept have methods that accept a Customer and Loan objects as inputs. If necessary, you can attach those to unmanaged properties (ones that don’t appear in the entity) for the Customer and Loan classes.

    If the Payoff Plans are in fact data and unique in the object graph then choice (2) is best.

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

Sidebar

Related Questions

I have a property on my customer object, say gender, based on an enum.
I have a view for my customer object that allows him to choose a
I have a scenario where I will be showing a Customer data in a
Hi: I have a question about how to design and map object class in
I'm trying to figure out what to do here. I have customer data in
net MVC Web Application. I have a database where i have made my model,
I need to write an NHibernate query that will place a restriction that accesses
Solution setup: DAL (class library) BLL (class library) Common (class library (some common functionality
I am looking for a book or blog entry on the following DDD concepts,
In my Parent Child scenario, I need to get the custom list of all

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.