Entities mapping for joins