Person entity: use int instead of java.time.Year as this is susceptible to errors in spark
This commit is contained in:
parent
9d296a48c6
commit
fd6ec5e58f
|
@ -1,7 +1,6 @@
|
|||
package eu.dnetlib.dhp.schema.oaf;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.Year;
|
||||
|
||||
public class PersonTopic implements Serializable {
|
||||
|
||||
|
@ -11,9 +10,9 @@ public class PersonTopic implements Serializable {
|
|||
|
||||
private String schema;
|
||||
|
||||
private Year fromYear;
|
||||
private int fromYear;
|
||||
|
||||
private Year toYear;
|
||||
private int toYear;
|
||||
|
||||
public PersonTopic() {
|
||||
}
|
||||
|
@ -34,19 +33,19 @@ public class PersonTopic implements Serializable {
|
|||
this.schema = schema;
|
||||
}
|
||||
|
||||
public Year getFromYear() {
|
||||
public int getFromYear() {
|
||||
return fromYear;
|
||||
}
|
||||
|
||||
public void setFromYear(Year fromYear) {
|
||||
public void setFromYear(int fromYear) {
|
||||
this.fromYear = fromYear;
|
||||
}
|
||||
|
||||
public Year getToYear() {
|
||||
public int getToYear() {
|
||||
return toYear;
|
||||
}
|
||||
|
||||
public void setToYear(Year toYear) {
|
||||
public void setToYear(int toYear) {
|
||||
this.toYear = toYear;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue