public static boolean hasExcludedFields(RelationQuery query) { if (query == null || query.getExcludedFields() == null || query.getExcludedFields().isEmpty()) { return false; } return true; }
public void addExcludedFields(RelationQuery relationQuery) { if (hasExcludedFields(relationQuery)) { this.addExcludedFields(relationQuery.getExcludedFields()); } }