Primary key mapping class, holding the node id of both ancestor and descendant,
which in combination will be unique and thus suitable as primary key for any TreePathImpl.
When node is persistent and action is neither MOVE nor INSERT,
appends a condition saying "node != originalNode", thus avoiding the node to detect itself.