404-not-find / orika

Automatically exported from code.google.com/p/orika
2 stars 0 forks source link

Mapping of Lists are not functioning correctly with fieldAToB #138

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a ClassMap with a fieldAToB mapping of a list.

What is the expected output? What do you see instead?
When mapping from AtoB everything is fine A is perfectly mapped to B. But when 
it's done back the field is also mapped which is incorrect since I used 
fieldAToB "Map a field in one direction only (from fieldNameA to fieldNameB)". 
So fieldAToB on a list is bidirectional which is incorrect, when used on a 
simple property (string e.g.) it works fine and it is only mapped in one 
direction.

What version of the product are you using? On what operating system?
1.4.4 and 1.4.5-SNAPSHOT on Mac OS X 10.9

Please provide any additional information below.
I tried to make a testcase but this testcase fails earlier on a exception in 
some generated code so something is definitely wrong with mapping a list with 
fieldAToB. Please test it out with the attached test.

Original issue reported on code.google.com by vincentheet on 10 Dec 2013 at 7:50

Attachments:

GoogleCodeExporter commented 8 years ago
A fix has been uploaded to the current master; please check it out and let us 
know how it works for you.

Original comment by matt.deb...@gmail.com on 19 Dec 2013 at 1:11

GoogleCodeExporter commented 8 years ago
I checked the latest snapshot and it works great. Thank you!

Original comment by vincentheet on 23 Dec 2013 at 8:06