@Override public Integer create(Employee employee) { contentValues = new ContentValues(); contentValues.put("name", employee.getName()); contentValues.put("postId", employee.getPost().getId()); contentValues.put("rate", employee.getRate()); contentValues.put("startDay", employee.getStartDay()); contentValues.put("inn", employee.getInn()); contentValues.put("email", employee.getEmail()); contentValues.put("phone", employee.getPhone()); contentValues.put("comment", employee.getComment()); Integer rowId = (int) database.insert("Employees", null, contentValues); return rowId; }