Make id field in Entity protected.