Implementing Data-Entity mapping