Questions tagged [object-object-mapping]

129 questions
0
votes
1 answer

Angular ng-repeat to access object with in an object

Framework: AngularJS 1.4.X Problem: Accessing Object with in Object In Built directive: ng-repeat In Directive: for ( i=0; i< something.lenght < i++) if ( element in elements ){ sendData[i]= { pair:element, …
Mad-D
  • 4,479
  • 18
  • 52
  • 93
0
votes
2 answers

ObjectMapper - JSON string to Java Object not working

I have a requirement where I need to convert JSON response from an API and send it as XML to the end client. I am able to successfully receive JSON (output pasted below) from the API but unable to convert it to Java Objects using ObjectMapper. I…
Vikas Prasad
  • 121
  • 2
  • 13
0
votes
3 answers

Objective-C class object not mapping to array

How can I pass the event to the toDoArray? I'm not sure what I'm missing. Any help appreciated. SDEventModel.h @interface SDEventModel : AWSDynamoDBObjectModel ViewController.h @property (nonatomic, strong) NSArray…
JetSet
  • 189
  • 1
  • 2
  • 10
0
votes
1 answer

Dozer mapping two classes with mismatched argument counts

I have two beans, one has five attributes and the other has four. How do I configure the mapping if I simply want to ignore the extra attribute? All of the exclude examples I see take an argument for both class one and class two.
Arlo Guthrie
  • 1,152
  • 3
  • 12
  • 28
0
votes
2 answers

Prevent refactoring mistakes with mapping libraries

Given class A { string Name {get;set;} } class B { string Name {get;set;} } I then use automapper to translate between A and B. Later, I rename A.Name to A.MyName: class A { string MyName {get;set;} } class B { string Name {get;set;} } This will…
Ruudjah
  • 807
  • 7
  • 27
0
votes
3 answers

How to map object in AlamofireObjectMapper

in my app i am using AlamofireObjectMapper for mapping. first time i am using this. here is my response which i am getting from API { Message = "email verification link has been sent to your email. please verify your account."; Result = …
Jack.Right
  • 974
  • 3
  • 14
  • 30
0
votes
1 answer

Mapping list of objects

I'm manually creating a mapper that converts a DAO object to a DTO. *** BTW, I'm aware of AutoMappers but I want to do this by hand for a few reasons. The mapper itself is not difficult. What I need help with is mapping a List. Do I need to handle…
Sam
  • 26,817
  • 58
  • 206
  • 383
0
votes
1 answer

Java Modelmapper: Converter doesnt get used

im working on a little java-program that synchronizes active directory users with users in my db. therefor, i am using modelmapper. seems to be working fine and is also pretty fast. anyway i added a converter to my mapping configuration. shows no…
Master Azazel
  • 612
  • 1
  • 12
  • 32
0
votes
3 answers

Generic object to object mapping with parametrized constructor

I have a data access layer which returns an IDataRecord. I have a WCF service that serves DataContracts (dto's). These DataContracts are initiated by a parametrized constructor containing the IDataRecord as follows: [DataContract] public class…
Rody
  • 2,675
  • 1
  • 22
  • 40
0
votes
2 answers

Saving texture with Preferences

So what Im trying to achive is: When the user purchases a new item (a texture) they can click a button to replace the old Item(texture) with the new one. What got in my mind first was Objectmaps. So I created this: ObjectMap
Benni
  • 969
  • 1
  • 19
  • 29
0
votes
2 answers

Jackson: Can not deserialize instance of com.org.my_services.external_services.ifs.converter.InventoryPricePayload out of START_ARRAY token

The payload I am trying to consume looks like I have list of classes that should map to the JSON payload above. InventoryPricePayload @JsonIgnoreProperties(ignoreUnknown = true) public class InventoryPricePayload { private…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
1 answer

Conversion of Java object, containing 2 or more maps, to JSON using jackson

Given a class of the following format: Class A { Collection(Item) x= new ArrayList(Item)(); Collection(Link) y= new ArrayList(Link)(); . . //You can add data to the Item and Link classes } where we have Class Item { …
0
votes
2 answers

webservice returning Object1.java not the same as Object1.java in the client app?

The same object is defined twice in different packages: packageX/Object1.java and packageY/Object1.java [Background: packageX is part of a webclient service, getting objects from a server. packageY is a java client using the objects retrieved by…
seinecle
  • 10,118
  • 14
  • 61
  • 120
0
votes
1 answer

Automapper - how to create map for this specific value object?

This is a representation of my domain model: public class AddressInfo { private readonly string addressee; private readonly string company; private readonly string city; public string Addressee { …
GilliVilla
  • 4,998
  • 11
  • 55
  • 96
0
votes
1 answer

Mapping Array to Core Data in RestKIt .20

Iam Trying To map Json To Custom Object Called Place Managed Object Class Of Place : @interface Place : NSManagedObject @property (nonatomic, retain) NSString * icon; @property (nonatomic, retain) NSString * place_id; @property (nonatomic, retain)…
1 2 3
8
9