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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:06:48+00:00 2026-06-10T13:06:48+00:00

Through RestKit Im loading a XML which looks like that: <item> <test_number>1</test_number> <test_question>test question</test_question>

  • 0

Through RestKit Im loading a XML which looks like that:

<item>
<test_number>1</test_number> 
<test_question>test question</test_question> 
<test_answer>test answer</test_question> 
</item>

<item>
<test_number>2</test_number> 
<test_question>test question 2</test_question> 
<test_question>test question 2</test_question> 
</item>
...

In my core data I have got my Item objects which have got the data. If im loading the xml I want to have my core data objects updated, only inserted if the object isn’t already existing in core data. Normally I would set the primary key that RestKit is able to recognize which object can be updated. But in my case I can have multiple items with the same test number, but other question and answer. So there is no primary key. How can I do the mapping for that in RestKit?

  • 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-10T13:06:50+00:00Added an answer on June 10, 2026 at 1:06 pm

    As I found out through some forums and documentations – RestKit needs a primary key to map the objects to CoreData. Otherwise it creates just new objects instead of updating the right ones.
    One solution can be to generate a own primary key with the important fields and then work with that. Another approach would be to map everything manually instead of the automatic mapping with RestKit.

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

Sidebar

Related Questions

Through the help of another user I have the following JSFiddle that looks at
I'm sending an objectManager postObject call through RestKit. After 4 attempts that return 403's
through java reflection how to check that method name is in camelCase? e.g. import
After making the rest call through RKObjectManager,it is not loading the objects when i
Through Oracle queries is it possible to find out which views/synonyms/tables a stored procedure
Through tutorials I had learned that you can define two variables in the same
Through many iterations of testing, I just noticed that my join table that represents
I am wanting to write a static library which uses RestKit , for an
Through some brief testing it appears that click() will trigger any applicable handlers synchronously
Through profiling I've discovered that the sprintf here takes a long time. Is there

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.