add an entity and an enum type entity