excluding project lombok from the dependencies, allow to deserialize solr.RecordType from 'otherresearchproduct'
This commit is contained in:
parent
e89828babe
commit
58c601171f
6
pom.xml
6
pom.xml
|
@ -430,6 +430,12 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.sisyphsu</groupId>
|
<groupId>com.github.sisyphsu</groupId>
|
||||||
<artifactId>dateparser</artifactId>
|
<artifactId>dateparser</artifactId>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -3,6 +3,8 @@ package eu.dnetlib.dhp.schema.solr;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
|
||||||
public enum RecordType implements Serializable {
|
public enum RecordType implements Serializable {
|
||||||
publication,
|
publication,
|
||||||
dataset,
|
dataset,
|
||||||
|
@ -13,6 +15,7 @@ public enum RecordType implements Serializable {
|
||||||
project,
|
project,
|
||||||
person;
|
person;
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
public static RecordType fromString(String s) {
|
public static RecordType fromString(String s) {
|
||||||
if (Objects.isNull(s)) {
|
if (Objects.isNull(s)) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue