use method on entity to get url