add a id to entities and a nice getIdentifier() method