Revert to 923c0ff803
This commit is contained in:
parent
3be96a92f9
commit
0194a86433
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
<groupId>eu.dnetlib.dhp</groupId>
|
<groupId>eu.dnetlib.dhp</groupId>
|
||||||
<artifactId>dhp-schemas</artifactId>
|
<artifactId>dhp-schemas</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>2.9.25-SNAPSHOT</version>
|
<version>2.9.24-SNAPSHOT</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|
|
@ -158,16 +158,6 @@ public class ModelSupport {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private RelationInverse findInverse(String encoding) {
|
|
||||||
return ModelSupport.relationInverseMap
|
|
||||||
.entrySet()
|
|
||||||
.stream()
|
|
||||||
.filter(r -> encoding.equalsIgnoreCase(r.getKey()))
|
|
||||||
.findFirst()
|
|
||||||
.map(r -> r.getValue())
|
|
||||||
.orElseThrow(() -> new IllegalArgumentException("invalid relationship: " + encoding));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method: fina a relation filtering by a relation name
|
* Helper method: fina a relation filtering by a relation name
|
||||||
* @param relationName
|
* @param relationName
|
||||||
|
|
Loading…
Reference in New Issue