uoa-validator-api/src/main/java/eu/dnetlib/validatorapi/entities/SummaryResult.java

37 lines
992 B
Java
Raw Normal View History

package eu.dnetlib.validatorapi.entities;
import org.springframework.boot.autoconfigure.session.StoreType;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class SummaryResult {
@Id
String rule_name;
long passed_records;
long failed_records;
long errors;
long warnings;
public SummaryResult(String rule_name, long passed_records, long failed_records, long errors, long warnings) {
this.rule_name = rule_name;
this.passed_records = passed_records;
this.failed_records = failed_records;
this.errors = errors;
this.warnings = warnings;
}
@Override
public String toString() {
return "SummaryResult{" +
"rule_name='" + rule_name + '\'' +
", passed_records=" + passed_records +
", failed_records=" + failed_records +
", errors=" + errors +
", warnings=" + warnings +
'}';
}
}