Moved entity ID setter to abstract

ID setter is global and requires the integer conversion regardless of
entity, a better place for it is therefore in the abstract
changing whitespace for tabs