Nagarro interview question

Design Object Relation Mapping like hibernate