added getters/setters for id, name, type to entity