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
69
votes
10 answers

JPA Cannot resolve column/IntelliJ

I'm trying to map some Java classes using the Hibernate JPA implementation. My problem is that I can't use hardcoded Strings als column namens. You can see the error message I get in the picture below. I'm using OpenJPA as my Default JPA Provider…
pichlbaer
  • 923
  • 1
  • 10
  • 18
68
votes
7 answers

Python Naming Conventions for Dictionaries/Maps/Hashes

While other questions have tackled the broader category of sequences and modules, I ask this very specific question: "What naming convention do you use for dictionaries and why?" Some naming convention samples I have been considering: # 'value' is…
pokstad
  • 3,411
  • 3
  • 30
  • 39
66
votes
8 answers

How can I quickly estimate the distance between two (latitude, longitude) points?

I want to be able to get a estimate of the distance between two (latitude, longitude) points. I want to undershoot, as this will be for A* graph search and I want it to be fast. The points will be at most 800 km apart.
fread2281
  • 1,136
  • 1
  • 11
  • 31
64
votes
2 answers

Java mapping: Selma vs MapStruct

Currently there are two main popular Java Object to Object mapping frameworks that supersede Dozer (http://dozer.sourceforge.net/documentation/mappings.html), they are: Selma - http://www.selma-java.org/ MapStruct - http://mapstruct.org/ With the…
JackDev
  • 11,003
  • 12
  • 51
  • 68
62
votes
14 answers

Entity Framework error - Error 11009: Property ' ' is not mapped

To improve an older project I am forced by the circumstances to use VS 2008 and Framework 3.5 - I have issues with the edmx showing bizarre behavior and not updating the entities as required. The edmx throws me the above error, but when I go to the…
Amc_rtty
  • 3,662
  • 11
  • 48
  • 73
61
votes
6 answers

How to make elasticsearch add the timestamp field to every document in all indices?

Elasticsearch experts, I have been unable to find a simple way to just tell ElasticSearch to insert the _timestamp field for all the documents that are added in all the indices (and all document types). I see an example for specific…
Gautam M
  • 777
  • 1
  • 6
  • 7
60
votes
8 answers

How do I map ctrl x ctrl o to ctrl space in terminal vim?

After searching a bit on the net it seems that I can't map CtrlSpace to anything/alot. Is there a way to do it today, what I found was usually 2 years old.
plitter
  • 765
  • 1
  • 8
  • 11
57
votes
8 answers

How to force Hibernate to return dates as java.util.Date instead of Timestamp?

Situation: I have a persistable class with variable of java.util.Date type: import java.util.Date; @Entity @Table(name = "prd_period") @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) public class Period extends ManagedEntity…
dim1902
  • 1,706
  • 4
  • 18
  • 31
56
votes
5 answers

Mapping a NumPy array in place

Is it possible to map a NumPy array in place? If yes, how? Given a_values - 2D array - this is the bit of code that does the trick for me at the moment: for row in range(len(a_values)): for col in range(len(a_values[0])): …
mac
  • 42,153
  • 26
  • 121
  • 131
54
votes
2 answers

Mapping columns from one dataframe to another to create a new column

i have a dataframe id store address 1 100 xyz 2 200 qwe 3 300 asd 4 400 zxc 5 500 bnm i have another dataframe df2 serialNo store_code warehouse 1 300 Land 2 …
Shubham R
  • 7,382
  • 18
  • 53
  • 119
54
votes
1 answer

gulp: uglify and sourcemaps

I am using gulp. I would like to having one or multiple JS files (say jQuery) to combine them in one, minify it, and write it to a distribution folder. This is how I do it: minifyJS(['/js/myModule.file1.js', '/js/myModule.file2.js'],…
serge
  • 13,940
  • 35
  • 121
  • 205
53
votes
3 answers

Automapper for Java

Is there Java equivalent of .Net's Automapper?
mgamer
  • 13,580
  • 25
  • 87
  • 145
51
votes
7 answers

Best Practices for mapping one object to another

My question is, what is the best way I can map one object to another in the most maintainable manner. I cannot change the way the Dto object that we are getting is setup to be more normalized so I need to create a way to map this to our…
Alex
  • 2,114
  • 9
  • 25
  • 34
50
votes
6 answers

Convert from latitude, longitude to x, y

I want to convert GPS location (latitude, longitude) into x,y coordinates. I found many links about this topic and applied it, but it doesn't give me the correct answer! I am following these steps to test the answer: (1) firstly, i take two…
userInThisWorld
  • 1,361
  • 4
  • 18
  • 35
49
votes
4 answers

Hibernate - Foreign keys instead of Entities

Currently, Hibernate allows me to load objects defined by *-to-one relationships directly with entity1.getEntity2() Is it possible to get the foreign key instead of the object? The current approach which I see is having addint to my…
iliaden
  • 3,791
  • 8
  • 38
  • 50