ER and EER to Relational Mapping