Making all entities serializable