adding support for hasOneMapping