Questions tagged [mapping]

Corresponding every element of a given set to a unique element of another set or it may refer to a process of creating data element mappings between two distinct data models (objects)

In this context, mapping refers to the process of creating data element mappings between two distinct data models (objects).

When it refers to mapping in data integration, it is a set of source and target definitions linked by the transformation objects that define the rules for data transformation. Mappings represent the data flow between sources and targets.

Data mapping is typically used as a first step for a wide variety of data integration tasks such as:

  1. Data transformation or data mediation between a data source and a destination

  2. Identification of data relationships as part of data lineage analysis

  3. Replication of data between two entities with different key-value assignments

  4. Discovery of hidden sensitive data such as the last four digits social security number hidden in another user id as part of a data masking or de-identification project

  5. Consolidation of multiple databases into a single data base and identifying redundant columns of data for consolidation or elimination.

9739 questions
49
votes
13 answers

Error 3004: Problem in mapping fragment starting at line

I have this error when I build my Web Service: Error 3004: Problem in mapping fragment starting at line 323: No mapping specified for properties JE_TRN_HS.JE_HDR_HSJE_HDR_KEY. Entity is type [TESTCPModel.JE_TRN_HS This is what happend. I…
49
votes
2 answers

Why `additionalProperties` is the way to represent Dictionary/Map in Swagger/OpenAPI 2.0

Although I have seen the examples in the OpenAPI spec: type: object additionalProperties: $ref: '#/definitions/ComplexModel' it isn't obvious to me why the use of additionalProperties is the correct schema for a Map/Dictionary. It also doesn't…
Chen Levy
  • 15,438
  • 17
  • 74
  • 92
48
votes
4 answers

Entity Framework options to map list of strings or list of int (List)

I want to store an object that contains a List of primitives using EF. public class MyObject { public int Id {get;set;} public virtual IList Numbers {get;set;} } I know that EF cannot store this, but I'd like to know possible solutions…
Bernhard Kircher
  • 4,132
  • 3
  • 32
  • 38
46
votes
4 answers

How to efficiently map a org.json.JSONObject to a POJO?

I'm using a 3rd party library to retrieve data in JSON format. The library offers the data to me as a org.json.JSONObject. I want to map this JSONObject to a POJO (Plain Old Java Object) for simpler access/code. For mapping, I currently use the…
Daniel S.
  • 6,458
  • 4
  • 35
  • 78
45
votes
3 answers

How to use mapper.Map inside MapperConfiguration of AutoMapper?

I need to map an object to another one using AutoMapper. The tricky question is how can I access an instance of the mapper (instance of IMapper) inside of the mapping configuration or inside of a custom type converter? The code below does not work,…
Anton
  • 2,458
  • 2
  • 18
  • 30
44
votes
2 answers

Using AutoMapper to map the property of an object to a string

I have the following model: public class Tag { public int Id { get; set; } public string Name { get; set; } } I want to be able to use AutoMapper to map the Name property of the Tag type to a string property in one of my viewmodels. I have…
marcusstarnes
  • 6,393
  • 14
  • 65
  • 112
43
votes
3 answers

how to map an anonymous object to a class by AutoMapper?

I have an entity: public class Tag { public int Id { get; set; } public string Word { get; set; } // other properties... // and a collection of blogposts: public ICollection Posts { get; set; } } and a model: public class…
amiry jd
  • 27,021
  • 30
  • 116
  • 215
43
votes
4 answers

Jackson Mapper post-construct

I am using the Jackson ObjectMapper to deserialize some JSON into a Java class, which we'll call PlayerData. I would like to add a bit of logic to the PlayerData class to fix up some data after the fields have been loaded in. For example, some…
Brandon Yarbrough
  • 37,021
  • 23
  • 116
  • 145
41
votes
7 answers

What is the best way to map windows drives using Python?

What is the best way to map a network share to a windows drive using Python? This share also requires a username and password.
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
40
votes
7 answers

Using AutoMapper to unflatten a DTO

I've been trying to use AutoMapper to save some time going from my DTOs to my domain objects, but I'm having trouble configuring the map so that it works, and I'm beginning to wonder if AutoMapper might be the wrong tool for the job. Consider this…
Josh Anderson
  • 5,975
  • 2
  • 35
  • 48
39
votes
9 answers

How can I have case insensitive URLS in Spring MVC with annotated mappings

I have annotated mappings working great through my spring mvc web app, however, they are case sensitive. I cannot find a way to make them case insensitive. (I'd love to make this happen within Spring MVC, rather than redirecting traffic somehow)
Dave
  • 391
  • 1
  • 3
  • 3
39
votes
13 answers

EF Mapping and metadata information could not be found for EntityType Error

I have encountered an exception when I use Entity Framework 4.0 RC. My Entity Framework model is encapsulated in a private assembly who's name is Procurement.EFDataProvider and my POCO classes are inside of another assembly Procurement.Core The…
39
votes
3 answers

Simple label on a leaflet (geojson) polygon

I am attempting what I imagine to be a fairly common use-case with a leaflet multipolygon object. I create the MultiPolygon using geojson: var layer = L.GeoJSON(g, style_opts); What I'd like is to put a simple text label in the center of each…
Hoopes
  • 3,943
  • 4
  • 44
  • 60
38
votes
1 answer

Show pressed keys in VIM normal mode statusline

I use VIM, the Colemak keyboard layout, and a Microsoft Natural 4000 keyboard. Since the Natural 4000 has differently-shaped keys, I could not change the keycaps. This means each key is labeled with an "incorrect" key -- I press the key that says…
ezuk
  • 3,096
  • 3
  • 30
  • 41
38
votes
4 answers

Why should anybody put annotations on the getters or setters when using JPA to map the classes?

Subject says it all... I see no advantage of people declaring annotations on the getters and/or setters so far. For me this only has the disadvantage of spreading the annotations over the class, which can make the class more unreadable. Putting the…
Kawu
  • 13,647
  • 34
  • 123
  • 195