/** * Convenient call for {@link AbstractDao#delete(Object)}. Entity must attached to an entity * context. */ public void delete() { if (myDao == null) { throw new DaoException("Entity is detached from DAO context"); } myDao.delete(this); }