Questions tagged [object-object-mapping]

129 questions
0
votes
0 answers

RestKit Mapping of Array with Ids for PUT Method

I'm stuck on the question of how to build up my objects and mapping to achieve something like this when putting data via the PUT-Method: "lastChanges/confirm" The above PUT-Request accepts a body like this to confirm synchronization of box ids: {…
helli99
  • 71
  • 1
  • 4
0
votes
2 answers

RestKit: Composing Relationships with the Nil Key Path

I have two classes Author with attributes id, papers (Paper relationship), ... Paper with attributes id, mainAuthor (Author relationship), authors (Author relationship) ... and want to map some JSON to it "authors": [ { "id": 123, …
tilo
  • 14,009
  • 6
  • 68
  • 85
0
votes
3 answers

NoClassDefFoundError in simple test

I want to use moo for dto- entity conversion. But testing it i get this exception Exception in thread "main" java.lang.NoClassDefFoundError: org/mvel2/PropertyAccessException at…
notis
  • 5
  • 1
  • 4
0
votes
1 answer

How to use RKObjectMapping as a standalone library

I use AFNetworking to write a RESTful client. An then use JSONKit to parse the response data to a NSDictionary. Example: - (void)postPath:(NSString *)path parameters:(NSDictionary *)parameters success:(void (^)(AFHTTPRequestOperation…
shiami
  • 7,174
  • 16
  • 53
  • 68
0
votes
1 answer

json to java object(using mapping)?

ObjectMapper mapper=new ObjectMapper(); String response1=client.execute(request1, responseHandler); Map jsonObject=mapper.readValue(response1, Map.class); jsonObject.get("docs"); I am getting json string from a url in a string name response1…
user1964901
  • 29
  • 1
  • 7
0
votes
1 answer

Multiple instances of same object using Restkit Object mapping

I'm using Restkit object mapping with the nested json data below. It will works great and each song object has a relevant rapper object. Except as you see below the rapper is the same for both songs, but each song object has a separate instance of a…
Wasim
  • 4,953
  • 10
  • 52
  • 87
0
votes
1 answer

Restkit Object Mapping with same object referenced multiple times

I am using Restkit to seed a database using a Json file. My problem is with how to construct the file to represent the relationships between the objects when the same object is referenced by two other objects. In my application I have a set of…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
-2
votes
2 answers

Can we have static method to set DB object to VIewModel object in c# asp.net mvc app

I'm using Asp.Net MVC,C#,EF 6 CodeFirst in my project. In some Views I need display properties from more than one entity, for that i have created ViewModel. Now to map ViewModel to Model(Database object) instead of using AutoMapper (Object…
-4
votes
1 answer

In Java can you create an unordered collection of objects that have multiple links?

I'm trying to make a game similar to Risk where each territory on the map is an object of a class I made, Territory. In order to create the game map I would like each Territory object to be linked to the other territories that would be adjacent on…
1 2 3
8
9