Skip to content
Snippets Groups Projects
Commit 5a30b2ef authored by vkovtun's avatar vkovtun
Browse files

SSDM-9845 Made the test...

SSDM-9845 Made the test GeneralInformationServiceTest.testSearchForSamplesByPermIdByAnyField() pass.
parent ae0006f3
No related branches found
No related tags found
No related merge requests found
......@@ -356,6 +356,7 @@ public enum TableMapper
{
final Map<String, PSQLTypes> fields = SAMPLE.fieldToSQLTypeMap;
fields.put(CODE_COLUMN, PSQLTypes.VARCHAR);
fields.put(PERM_ID_COLUMN, PSQLTypes.VARCHAR);
fields.put(REGISTRATION_TIMESTAMP_COLUMN, PSQLTypes.TIMESTAMP_WITH_TZ);
fields.put(MODIFICATION_TIMESTAMP_COLUMN, PSQLTypes.TIMESTAMP_WITH_TZ);
}
......@@ -371,6 +372,7 @@ public enum TableMapper
{
final Map<String, PSQLTypes> fields = EXPERIMENT.fieldToSQLTypeMap;
fields.put(CODE_COLUMN, PSQLTypes.VARCHAR);
fields.put(PERM_ID_COLUMN, PSQLTypes.VARCHAR);
fields.put(REGISTRATION_TIMESTAMP_COLUMN, PSQLTypes.TIMESTAMP_WITH_TZ);
fields.put(MODIFICATION_TIMESTAMP_COLUMN, PSQLTypes.TIMESTAMP_WITH_TZ);
}
......@@ -392,7 +394,7 @@ public enum TableMapper
private static void initSampleSQLTypeToFieldsMap()
{
final Map<PSQLTypes, Set<String>> map = SAMPLE.sqlTypeToFieldsMap;
map.put(PSQLTypes.VARCHAR, new HashSet<>(Arrays.asList(CODE_COLUMN)));
map.put(PSQLTypes.VARCHAR, new HashSet<>(Arrays.asList(CODE_COLUMN, PERM_ID_COLUMN)));
map.put(PSQLTypes.TIMESTAMP_WITH_TZ, new HashSet<>(Arrays.asList(REGISTRATION_TIMESTAMP_COLUMN, MODIFICATION_TIMESTAMP_COLUMN)));
}
......@@ -413,7 +415,7 @@ public enum TableMapper
private static void initExperimentSQLTypeToFieldsMap()
{
final Map<PSQLTypes, Set<String>> map = EXPERIMENT.sqlTypeToFieldsMap;
map.put(PSQLTypes.VARCHAR, new HashSet<>(Arrays.asList(CODE_COLUMN)));
map.put(PSQLTypes.VARCHAR, new HashSet<>(Arrays.asList(CODE_COLUMN, PERM_ID_COLUMN)));
}
private static void initExperimentTypeSQLTypeToFieldsMap()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment