ER-D and EERD to relational mapping