From fd6ec5e58f7f29fbfab20209fa8c73c0e90fe3b9 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 31 Jul 2024 10:27:58 +0200 Subject: [PATCH] Person entity: use int instead of java.time.Year as this is susceptible to errors in spark --- .../java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java index ac9dbac..f9df511 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java +++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java @@ -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; } }