lowercase to period name on native and temporal fields
This commit is contained in:
parent
0010458a23
commit
c7673f7ba1
|
@ -21,7 +21,7 @@ public class NativePeriod {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPeriodName(String periodName) {
|
public void setPeriodName(String periodName) {
|
||||||
this.periodName = WordUtils.capitalizeFully(periodName);
|
this.periodName = periodName.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUntil() {
|
public String getUntil() {
|
||||||
|
|
|
@ -25,7 +25,7 @@ public class Temporal {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPeriodName(String periodName) {
|
public void setPeriodName(String periodName) {
|
||||||
this.periodName = WordUtils.capitalizeFully(periodName);
|
this.periodName = periodName.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUntil() {
|
public String getUntil() {
|
||||||
|
|
|
@ -361,6 +361,16 @@ public class GraphDbReaderAndESIndexTest {
|
||||||
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
// @Ignore
|
||||||
|
public void uploadNormalizerTest2() throws Exception {
|
||||||
|
boolean isRecord = true;
|
||||||
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/A0D9DC1F-2C62-3423-BAE6-4248D5072585";
|
||||||
|
String datasource = "ads";
|
||||||
|
String collectionId = "321";
|
||||||
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||||
|
}
|
||||||
|
|
||||||
private void readAndIndexTest(boolean isRecord, String recordId, String datasource, String collectionId) throws Exception {
|
private void readAndIndexTest(boolean isRecord, String recordId, String datasource, String collectionId) throws Exception {
|
||||||
final ClassPathResource resource = new ClassPathResource("application.properties");
|
final ClassPathResource resource = new ClassPathResource("application.properties");
|
||||||
Properties appProps = new Properties();
|
Properties appProps = new Properties();
|
||||||
|
|
Loading…
Reference in New Issue