Made separate method for domain object ID, prevents detach errors on getId