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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T12:58:05+00:00 2026-05-31T12:58:05+00:00

I have to tables: Contract and ContractDetails which are connected with a relationship. First

  • 0

I have to tables: Contract and ContractDetails which are connected with a relationship.

First I query for all Contracts using Restkit. Then a user taps on one Contract and forces a request to get the detail-data (ContractDetails).

the Contract-Details-JSON-response is something like this:

{
   "contractID" = "0815",
   "otherValues" = "doesn't matter here"
}

how do I setup a relationship between the two tables in my RestKit-configuration? RestKit should look up the Contract-Entry using the contractID and connect the detailsdata with the contractdata.

  • 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-31T12:58:07+00:00Added an answer on May 31, 2026 at 12:58 pm

    See the “Relationships” section of https://github.com/RestKit/RestKit/wiki/Object-mapping.

    Essentially, you create a mapping for both the Contract and ContractDetails and connect them via:

    [detailsMapping mapKeyPath:@”contractID” toRelationship:@”contract” withMapping:contractMapping];

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

Sidebar

Related Questions

I have tables linked by FK, I query on the first table using entity
I have four tables, USER, CONTACT, CONACT_TYPE, and USER_CONTACT USER_CONTACT stores all of the
The case: I have 2 tables, 'contracts' and 'members' tied with contract.id = members.cid.
I have 2 tables 'contract' and 'customer', they have fk relationship. I drag 'contact'
I have a simple parent/child tables. Contract is the parent table. Each contract can
I have two tables in my database: user and media_contact . The media_contact table
I have 3 tables I need to join. The contracts table is the main
I am quite new to hibernate. I have got the following tables: Contract ContractID
I have tables contracts and users and i need to show contracts sorted by
I have a database containing a lot of tables, most of which have 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.