Skip to content
Snippets Groups Projects
Commit 8f880e46 authored by felmer's avatar felmer
Browse files

SSDM-4653: Fix PropertyQueryGenerator: createMaterialPropertyQuery and createPropertyHistoryQuery

SVN: 37613
parent 332c11f5
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@ public class PropertyQueryGenerator
StringBuilder sb = new StringBuilder();
sb.append("select ");
sb.append("p." + params.propertyTableEntityIdColumn + " as objectId, ");
sb.append("case pt.is_managed_internally when FALSE then pt.code else '$' || pt.code end as propertyCode, ");
sb.append("case pt.is_internal_namespace when FALSE then pt.code else '$' || pt.code end as propertyCode, ");
sb.append("p.mate_prop_id as propertyValue \n");
sb.append("from ");
sb.append(params.propertyTable + " p \n");
......@@ -185,7 +185,7 @@ public class PropertyQueryGenerator
sb.append("select ");
sb.append("ph." + params.propertyHistoryTableEntityIdColumn + " as objectId, ");
sb.append("ph.pers_id_author as authorId, ");
sb.append("case pt.is_managed_internally when FALSE then pt.code else '$' || pt.code end as propertyCode, ");
sb.append("case pt.is_internal_namespace when FALSE then pt.code else '$' || pt.code end as propertyCode, ");
sb.append("ph.value as propertyValue, ");
sb.append("ph.material as materialPropertyValue, ");
sb.append("ph.vocabulary_term as vocabularyPropertyValue, ");
......
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