Added ability to map check attribute on class mapping by code