Сравните список из DB и List из запроса

List<String> compareObjects(PartInfo filePart, PartInfo dbPart) {
    List<String> different = new LinkedList<String>();

    if (!filePart.getNumber().equals(dbPart.getNumber())) {
        different.add("number");
    }
    //repeat for all your fields
    return different;
}


#Note: Check differences for each field ob each object from 2 list only
Doubtful Dunlin