atos1990 / orika

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

Add flag to disable auto generation of mapper classes. #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For security / paranoia reasons I would like to scope the mapping to classes 
that I have manually defined mappers for.  Basically the factory should refuse 
to generate a mapper in lookupmapper if one has not been defined already.  I've 
attached a patch built against 1.2.0 that shows the behavior I am trying to 
achieve.

Original issue reported on code.google.com by ransombr...@gmail.com on 31 May 2012 at 2:38

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, an initial implementation of this is available in the 1.2.0 branch.
It's not exactly as your patch (instead call useAutoMapping(false) on the 
Builder), as I factored it into part of a change to make DefaultMapperFactory 
more extensible.

Please check it out and let me know if this is working as expected.

Original comment by matt.deb...@gmail.com on 1 Jun 2012 at 5:15

GoogleCodeExporter commented 9 years ago
Sorry for the delay, but this is working as expected.

Thanks,
Ransom

Original comment by ransombr...@gmail.com on 6 Jun 2012 at 2:57

GoogleCodeExporter commented 9 years ago
Excellent; thanks.
Marked as fixed in the 1.2.0 branch

Original comment by matt.deb...@gmail.com on 9 Jul 2012 at 1:59