I completely agree here. I even added one commit to the pull-request that implements this idea. I probably so used to have ID in the domain object itself, that I failed to notice other alternatives.