Made ClassMapping and FieldMapping generic.