/** @inheritdoc */ @Override public Long getKey(StaffsTasks entity) { if (entity != null) { return entity.getId(); } else { return null; } }
/** @inheritdoc */ @Override protected void bindValues(SQLiteStatement stmt, StaffsTasks entity) { stmt.clearBindings(); Long id = entity.getId(); if (id != null) { stmt.bindLong(1, id); } stmt.bindLong(2, entity.getStaff_id()); stmt.bindLong(3, entity.getTask_id()); }