Add Serializable to entity.