Mappings are preferably declared on the adapter

Cleaning the code by setting the mapping on the adapter which avoids to modify manually the serializer.