Added setters and getters for the entity itself.

Useful for fake entities in validation time.