updated solr.Person model, using string to model the Year field.

This commit is contained in:
Claudio Atzori 2024-09-24 11:03:45 +02:00
parent 8c2665a706
commit 02abe33b46
1 changed files with 7 additions and 7 deletions

View File

@ -11,11 +11,11 @@ public class PersonTopic implements Serializable {
private String schema;
private Year fromYear;
private String fromYear;
private Year toYear;
private String toYear;
public static PersonTopic newInstance(String value, String schema, Year fromYear, Year toYear) {
public static PersonTopic newInstance(String value, String schema, String fromYear, String toYear) {
final PersonTopic personTopic = new PersonTopic();
personTopic.setValue(value);
personTopic.setSchema(schema);
@ -43,19 +43,19 @@ public class PersonTopic implements Serializable {
this.schema = schema;
}
public Year getFromYear() {
public String getFromYear() {
return fromYear;
}
public void setFromYear(Year fromYear) {
public void setFromYear(String fromYear) {
this.fromYear = fromYear;
}
public Year getToYear() {
public String getToYear() {
return toYear;
}
public void setToYear(Year toYear) {
public void setToYear(String toYear) {
this.toYear = toYear;
}
}