setup location-entity relationship