TSK-1507: Cleaned up some CodeSmells (#1400)
* TSK-1507: Cleaned up some CodeSmells * TSK-1507: Improvements after review
This commit is contained in:
parent
9906c0c7f9
commit
ff0b77f6ad
|
@ -95,15 +95,15 @@ public interface BaseQuery<T, U extends Enum<U> & QueryColumnName> {
|
|||
ASCENDING("ASC"),
|
||||
DESCENDING("DESC");
|
||||
|
||||
private final String sortDirection;
|
||||
private final String direction;
|
||||
|
||||
SortDirection(String sortDirection) {
|
||||
this.sortDirection = sortDirection;
|
||||
this.direction = sortDirection;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return sortDirection;
|
||||
return direction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@ package pro.taskana.simplehistory.impl.classification;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.spi.history.api.events.classification.ClassificationHistoryEvent;
|
||||
|
@ -36,32 +35,29 @@ public interface ClassificationHistoryEventMapper {
|
|||
+ " FROM CLASSIFICATION_HISTORY_EVENT WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "eventType", column = "EVENT_TYPE"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "userId", column = "USER_ID"),
|
||||
@Result(property = "classificationId", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT"),
|
||||
@Result(property = "category", column = "CATEGORY"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "parentId", column = "PARENT_ID"),
|
||||
@Result(property = "parentKey", column = "PARENT_KEY"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8"),
|
||||
@Result(property = "details", column = "DETAILS")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "eventType", column = "EVENT_TYPE")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "userId", column = "USER_ID")
|
||||
@Result(property = "classificationId", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT")
|
||||
@Result(property = "category", column = "CATEGORY")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "parentId", column = "PARENT_ID")
|
||||
@Result(property = "parentKey", column = "PARENT_KEY")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
@Result(property = "details", column = "DETAILS")
|
||||
ClassificationHistoryEvent findById(@Param("id") String id);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package pro.taskana.simplehistory.impl.classification;
|
|||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.simplehistory.impl.ClassificationHistoryQueryImpl;
|
||||
|
@ -66,32 +65,29 @@ public interface ClassificationHistoryQueryMapper {
|
|||
+ "</where>"
|
||||
+ "<if test='!orderBy.isEmpty()'>ORDER BY <foreach item='item' collection='orderBy' separator=',' >${item}</foreach></if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "eventType", column = "EVENT_TYPE"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "userId", column = "USER_ID"),
|
||||
@Result(property = "classificationId", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT"),
|
||||
@Result(property = "category", column = "CATEGORY"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "parentId", column = "PARENT_ID"),
|
||||
@Result(property = "parentKey", column = "PARENT_KEY"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "eventType", column = "EVENT_TYPE")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "userId", column = "USER_ID")
|
||||
@Result(property = "classificationId", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT")
|
||||
@Result(property = "category", column = "CATEGORY")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "parentId", column = "PARENT_ID")
|
||||
@Result(property = "parentKey", column = "PARENT_KEY")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
List<ClassificationHistoryEvent> queryHistoryEvents(
|
||||
ClassificationHistoryQueryImpl historyEventQuery);
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ import org.apache.ibatis.annotations.Delete;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.spi.history.api.events.task.TaskHistoryEvent;
|
||||
|
@ -37,33 +36,30 @@ public interface TaskHistoryEventMapper {
|
|||
+ "FROM TASK_HISTORY_EVENT WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "taskId", column = "TASK_ID"),
|
||||
@Result(property = "eventType", column = "EVENT_TYPE"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "userId", column = "USER_ID"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "workbasketKey", column = "WORKBASKET_KEY"),
|
||||
@Result(property = "porCompany", column = "POR_COMPANY"),
|
||||
@Result(property = "porSystem", column = "POR_SYSTEM"),
|
||||
@Result(property = "porInstance", column = "POR_INSTANCE"),
|
||||
@Result(property = "porType", column = "POR_TYPE"),
|
||||
@Result(property = "porValue", column = "POR_VALUE"),
|
||||
@Result(property = "taskClassificationKey", column = "TASK_CLASSIFICATION_KEY"),
|
||||
@Result(property = "taskClassificationCategory", column = "TASK_CLASSIFICATION_CATEGORY"),
|
||||
@Result(property = "attachmentClassificationKey", column = "ATTACHMENT_CLASSIFICATION_KEY"),
|
||||
@Result(property = "oldValue", column = "OLD_VALUE"),
|
||||
@Result(property = "newValue", column = "NEW_VALUE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "details", column = "DETAILS")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID")
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID")
|
||||
@Result(property = "taskId", column = "TASK_ID")
|
||||
@Result(property = "eventType", column = "EVENT_TYPE")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "userId", column = "USER_ID")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "workbasketKey", column = "WORKBASKET_KEY")
|
||||
@Result(property = "porCompany", column = "POR_COMPANY")
|
||||
@Result(property = "porSystem", column = "POR_SYSTEM")
|
||||
@Result(property = "porInstance", column = "POR_INSTANCE")
|
||||
@Result(property = "porType", column = "POR_TYPE")
|
||||
@Result(property = "porValue", column = "POR_VALUE")
|
||||
@Result(property = "taskClassificationKey", column = "TASK_CLASSIFICATION_KEY")
|
||||
@Result(property = "taskClassificationCategory", column = "TASK_CLASSIFICATION_CATEGORY")
|
||||
@Result(property = "attachmentClassificationKey", column = "ATTACHMENT_CLASSIFICATION_KEY")
|
||||
@Result(property = "oldValue", column = "OLD_VALUE")
|
||||
@Result(property = "newValue", column = "NEW_VALUE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "details", column = "DETAILS")
|
||||
TaskHistoryEvent findById(@Param("id") String id);
|
||||
|
||||
@Delete(
|
||||
|
|
|
@ -2,7 +2,6 @@ package pro.taskana.simplehistory.impl.task;
|
|||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.simplehistory.impl.TaskHistoryQueryImpl;
|
||||
|
@ -68,32 +67,29 @@ public interface TaskHistoryQueryMapper {
|
|||
+ "</where>"
|
||||
+ "<if test='!orderBy.isEmpty()'>ORDER BY <foreach item='item' collection='orderBy' separator=',' >${item}</foreach></if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "taskId", column = "TASK_ID"),
|
||||
@Result(property = "eventType", column = "EVENT_TYPE"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "userId", column = "USER_ID"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "workbasketKey", column = "WORKBASKET_KEY"),
|
||||
@Result(property = "porCompany", column = "POR_COMPANY"),
|
||||
@Result(property = "porSystem", column = "POR_SYSTEM"),
|
||||
@Result(property = "porInstance", column = "POR_INSTANCE"),
|
||||
@Result(property = "porType", column = "POR_TYPE"),
|
||||
@Result(property = "porValue", column = "POR_VALUE"),
|
||||
@Result(property = "taskClassificationKey", column = "TASK_CLASSIFICATION_KEY"),
|
||||
@Result(property = "taskClassificationCategory", column = "TASK_CLASSIFICATION_CATEGORY"),
|
||||
@Result(property = "attachmentClassificationKey", column = "ATTACHMENT_CLASSIFICATION_KEY"),
|
||||
@Result(property = "oldValue", column = "OLD_VALUE"),
|
||||
@Result(property = "newValue", column = "NEW_VALUE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID")
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID")
|
||||
@Result(property = "taskId", column = "TASK_ID")
|
||||
@Result(property = "eventType", column = "EVENT_TYPE")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "userId", column = "USER_ID")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "workbasketKey", column = "WORKBASKET_KEY")
|
||||
@Result(property = "porCompany", column = "POR_COMPANY")
|
||||
@Result(property = "porSystem", column = "POR_SYSTEM")
|
||||
@Result(property = "porInstance", column = "POR_INSTANCE")
|
||||
@Result(property = "porType", column = "POR_TYPE")
|
||||
@Result(property = "porValue", column = "POR_VALUE")
|
||||
@Result(property = "taskClassificationKey", column = "TASK_CLASSIFICATION_KEY")
|
||||
@Result(property = "taskClassificationCategory", column = "TASK_CLASSIFICATION_CATEGORY")
|
||||
@Result(property = "attachmentClassificationKey", column = "ATTACHMENT_CLASSIFICATION_KEY")
|
||||
@Result(property = "oldValue", column = "OLD_VALUE")
|
||||
@Result(property = "newValue", column = "NEW_VALUE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
List<TaskHistoryEvent> queryHistoryEvents(TaskHistoryQueryImpl historyEventQuery);
|
||||
|
||||
@Select(
|
||||
|
|
|
@ -3,7 +3,6 @@ package pro.taskana.simplehistory.impl.workbasket;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.spi.history.api.events.workbasket.WorkbasketHistoryEvent;
|
||||
|
@ -34,26 +33,23 @@ public interface WorkbasketHistoryEventMapper {
|
|||
+ "FROM WORKBASKET_HISTORY_EVENT WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "eventType", column = "EVENT_TYPE"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "userId", column = "USER_ID"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORGLEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORGLEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORGLEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORGLEVEL_4"),
|
||||
@Result(property = "details", column = "DETAILS")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "eventType", column = "EVENT_TYPE")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "userId", column = "USER_ID")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORGLEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORGLEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORGLEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORGLEVEL_4")
|
||||
@Result(property = "details", column = "DETAILS")
|
||||
WorkbasketHistoryEvent findById(@Param("id") String id);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package pro.taskana.simplehistory.impl.workbasket;
|
|||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.simplehistory.impl.WorkbasketHistoryQueryImpl;
|
||||
|
@ -55,26 +54,23 @@ public interface WorkbasketHistoryQueryMapper {
|
|||
+ "</where>"
|
||||
+ "<if test='!orderBy.isEmpty()'>ORDER BY <foreach item='item' collection='orderBy' separator=',' >${item}</foreach></if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "eventType", column = "EVENT_TYPE"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "userId", column = "USER_ID"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORGLEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORGLEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORGLEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORGLEVEL_4")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "eventType", column = "EVENT_TYPE")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "userId", column = "USER_ID")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORGLEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORGLEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORGLEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORGLEVEL_4")
|
||||
List<WorkbasketHistoryEvent> queryHistoryEvents(WorkbasketHistoryQueryImpl historyEventQuery);
|
||||
|
||||
@Select(
|
||||
|
|
|
@ -49,7 +49,7 @@ public class TaskanaProducers {
|
|||
dataSource = (DataSource) ctx.lookup(properties.getProperty("datasource.jndi"));
|
||||
try (Connection connection = dataSource.getConnection()) {
|
||||
DatabaseMetaData metaData = connection.getMetaData();
|
||||
LOGGER.debug("---------------> " + metaData);
|
||||
LOGGER.debug("---------------> {}", metaData);
|
||||
}
|
||||
this.taskanaEngineConfiguration =
|
||||
new TaskanaEngineConfiguration(dataSource, true, false, "TASKANA");
|
||||
|
|
|
@ -4,7 +4,6 @@ import org.apache.ibatis.annotations.Delete;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -21,31 +20,29 @@ public interface ClassificationMapper {
|
|||
+ "AND DOMAIN = #{domain}"
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "parentId", column = "PARENT_ID"),
|
||||
@Result(property = "parentKey", column = "PARENT_KEY"),
|
||||
@Result(property = "category", column = "CATEGORY"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "isValidInDomain", column = "VALID_IN_DOMAIN"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL"),
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "parentId", column = "PARENT_ID")
|
||||
@Result(property = "parentKey", column = "PARENT_KEY")
|
||||
@Result(property = "category", column = "CATEGORY")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "isValidInDomain", column = "VALID_IN_DOMAIN")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL")
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
ClassificationImpl findByKeyAndDomain(@Param("key") String key, @Param("domain") String domain);
|
||||
|
||||
@Select(
|
||||
|
@ -54,31 +51,29 @@ public interface ClassificationMapper {
|
|||
+ "WHERE ID = #{id}"
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "parentId", column = "PARENT_ID"),
|
||||
@Result(property = "parentKey", column = "PARENT_KEY"),
|
||||
@Result(property = "category", column = "CATEGORY"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "isValidInDomain", column = "VALID_IN_DOMAIN"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL"),
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "parentId", column = "PARENT_ID")
|
||||
@Result(property = "parentKey", column = "PARENT_KEY")
|
||||
@Result(property = "category", column = "CATEGORY")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "isValidInDomain", column = "VALID_IN_DOMAIN")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL")
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
ClassificationImpl findById(@Param("id") String id);
|
||||
|
||||
@Insert(
|
||||
|
|
|
@ -2,7 +2,6 @@ package pro.taskana.classification.internal;
|
|||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.classification.internal.models.ClassificationSummaryImpl;
|
||||
|
@ -52,27 +51,25 @@ public interface ClassificationQueryMapper {
|
|||
+ "<if test='!orderBy.isEmpty()'>ORDER BY <foreach item='item' collection='orderBy' separator=',' >${item}</foreach></if> "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "category", column = "CATEGORY"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL"),
|
||||
@Result(property = "parentId", column = "PARENT_ID"),
|
||||
@Result(property = "parentKey", column = "PARENT_KEY"),
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "category", column = "CATEGORY")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "serviceLevel", column = "SERVICE_LEVEL")
|
||||
@Result(property = "parentId", column = "PARENT_ID")
|
||||
@Result(property = "parentKey", column = "PARENT_KEY")
|
||||
@Result(property = "applicationEntryPoint", column = "APPLICATION_ENTRY_POINT")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
List<ClassificationSummaryImpl> queryClassificationSummaries(
|
||||
ClassificationQueryImpl classificationQuery);
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Delete;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -33,7 +32,7 @@ public interface JobMapper {
|
|||
+ "</choose>"
|
||||
+ ", #{job.priority}, #{job.created}, #{job.due}, #{job.state}, #{job.lockedBy}, #{job.lockExpires}, #{job.type}, #{job.retryCount}, #{job.arguments,javaType=java.util.Map,typeHandler=pro.taskana.common.internal.persistence.MapTypeHandler} )"
|
||||
+ "</script>")
|
||||
@Results(value = {@Result(property = "jobId", column = "JOB_ID")})
|
||||
@Result(property = "jobId", column = "JOB_ID")
|
||||
Integer insertJob(@Param("job") ScheduledJob job);
|
||||
|
||||
@Select(
|
||||
|
@ -43,23 +42,20 @@ public interface JobMapper {
|
|||
+ "ORDER BY PRIORITY DESC "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "jobId", column = "JOB_ID"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "due", column = "DUE"),
|
||||
@Result(property = "state", column = "STATE"),
|
||||
@Result(property = "lockedBy", column = "LOCKED_BY"),
|
||||
@Result(property = "lockExpires", column = "LOCK_EXPIRES"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "retryCount", column = "RETRY_COUNT"),
|
||||
@Result(
|
||||
property = "arguments",
|
||||
column = "ARGUMENTS",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
})
|
||||
@Result(property = "jobId", column = "JOB_ID")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "due", column = "DUE")
|
||||
@Result(property = "state", column = "STATE")
|
||||
@Result(property = "lockedBy", column = "LOCKED_BY")
|
||||
@Result(property = "lockExpires", column = "LOCK_EXPIRES")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "retryCount", column = "RETRY_COUNT")
|
||||
@Result(
|
||||
property = "arguments",
|
||||
column = "ARGUMENTS",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
List<ScheduledJob> findJobsToRun(Instant now);
|
||||
|
||||
@Update(
|
||||
|
|
|
@ -4,7 +4,6 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.monitor.api.CombinedClassificationFilter;
|
||||
|
@ -112,11 +111,9 @@ public interface MonitorMapper {
|
|||
+ ") AS B "
|
||||
+ "GROUP BY B.CLASSIFICATION_CATEGORY, B.AGE_IN_DAYS "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(column = "CLASSIFICATION_CATEGORY", property = "key"),
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays"),
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
})
|
||||
@Result(column = "CLASSIFICATION_CATEGORY", property = "key")
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays")
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
List<MonitorQueryItem> getTaskCountOfCategories(
|
||||
@Param("workbasketIds") List<String> workbasketIds,
|
||||
@Param("states") List<TaskState> states,
|
||||
|
@ -161,11 +158,9 @@ public interface MonitorMapper {
|
|||
+ ") AS B "
|
||||
+ "GROUP BY B.CLASSIFICATION_KEY, B.AGE_IN_DAYS "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(column = "CLASSIFICATION_KEY", property = "key"),
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays"),
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
})
|
||||
@Result(column = "CLASSIFICATION_KEY", property = "key")
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays")
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
List<MonitorQueryItem> getTaskCountOfClassifications(
|
||||
@Param("workbasketIds") List<String> workbasketIds,
|
||||
@Param("states") List<TaskState> states,
|
||||
|
@ -210,12 +205,10 @@ public interface MonitorMapper {
|
|||
+ ") AS B "
|
||||
+ "GROUP BY B.TASK_CLASSIFICATION_KEY, B.ATTACHMENT_CLASSIFICATION_KEY, B.AGE_IN_DAYS "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(column = "TASK_CLASSIFICATION_KEY", property = "key"),
|
||||
@Result(column = "ATTACHMENT_CLASSIFICATION_KEY", property = "attachmentKey"),
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays"),
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
})
|
||||
@Result(column = "TASK_CLASSIFICATION_KEY", property = "key")
|
||||
@Result(column = "ATTACHMENT_CLASSIFICATION_KEY", property = "attachmentKey")
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays")
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
List<DetailedMonitorQueryItem> getTaskCountOfDetailedClassifications(
|
||||
@Param("workbasketIds") List<String> workbasketIds,
|
||||
@Param("states") List<TaskState> states,
|
||||
|
@ -260,11 +253,9 @@ public interface MonitorMapper {
|
|||
+ ") AS B "
|
||||
+ "GROUP BY B.CUSTOM_FIELD, B.AGE_IN_DAYS "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(column = "CUSTOM_FIELD", property = "key"),
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays"),
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
})
|
||||
@Result(column = "CUSTOM_FIELD", property = "key")
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays")
|
||||
@Result(column = "NUMBER_OF_TASKS", property = "numberOfTasks")
|
||||
List<MonitorQueryItem> getTaskCountOfTaskCustomFieldValues(
|
||||
@Param("customField") TaskCustomField taskCustomField,
|
||||
@Param("workbasketIds") List<String> workbasketIds,
|
||||
|
@ -368,11 +359,9 @@ public interface MonitorMapper {
|
|||
+ "</where>"
|
||||
+ "GROUP BY WORKBASKET_KEY, STATE"
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(column = "WORKBASKET_KEY", property = "workbasketKey"),
|
||||
@Result(column = "STATE", property = "state"),
|
||||
@Result(column = "COUNT", property = "count"),
|
||||
})
|
||||
@Result(column = "WORKBASKET_KEY", property = "workbasketKey")
|
||||
@Result(column = "STATE", property = "state")
|
||||
@Result(column = "COUNT", property = "count")
|
||||
List<TaskQueryItem> getTasksCountByState(
|
||||
@Param("domains") List<String> domains,
|
||||
@Param("states") List<TaskState> states,
|
||||
|
@ -468,15 +457,13 @@ public interface MonitorMapper {
|
|||
+ ") AS A "
|
||||
+ "GROUP BY A.AGE_IN_DAYS, A.ORG_LEVEL_1, A.ORG_LEVEL_2, A.ORG_LEVEL_3, A.ORG_LEVEL_4 "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(column = "STATUS", property = "status"),
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays"),
|
||||
@Result(column = "COUNT", property = "count"),
|
||||
@Result(column = "ORG_LEVEL_1", property = "orgLevel1"),
|
||||
@Result(column = "ORG_LEVEL_2", property = "orgLevel2"),
|
||||
@Result(column = "ORG_LEVEL_3", property = "orgLevel3"),
|
||||
@Result(column = "ORG_LEVEL_4", property = "orgLevel4")
|
||||
})
|
||||
@Result(column = "STATUS", property = "status")
|
||||
@Result(column = "AGE_IN_DAYS", property = "ageInDays")
|
||||
@Result(column = "COUNT", property = "count")
|
||||
@Result(column = "ORG_LEVEL_1", property = "orgLevel1")
|
||||
@Result(column = "ORG_LEVEL_2", property = "orgLevel2")
|
||||
@Result(column = "ORG_LEVEL_3", property = "orgLevel3")
|
||||
@Result(column = "ORG_LEVEL_4", property = "orgLevel4")
|
||||
List<TimestampQueryItem> getTasksCountForStatusGroupedByOrgLevel(
|
||||
@Param("status") TaskTimestamp status,
|
||||
@Param("classificationCategories") List<String> classificationCategories,
|
||||
|
|
|
@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Delete;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
import org.apache.ibatis.type.ClobTypeHandler;
|
||||
|
@ -33,27 +32,24 @@ public interface AttachmentMapper {
|
|||
+ "WHERE TASK_ID = #{taskId} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "taskId", column = "TASK_ID"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY"),
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "objectReference.company", column = "REF_COMPANY"),
|
||||
@Result(property = "objectReference.system", column = "REF_SYSTEM"),
|
||||
@Result(property = "objectReference.systemInstance", column = "REF_INSTANCE"),
|
||||
@Result(property = "objectReference.type", column = "REF_TYPE"),
|
||||
@Result(property = "objectReference.value", column = "REF_VALUE"),
|
||||
@Result(property = "channel", column = "CHANNEL"),
|
||||
@Result(property = "received", column = "RECEIVED"),
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "taskId", column = "TASK_ID")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY")
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "objectReference.company", column = "REF_COMPANY")
|
||||
@Result(property = "objectReference.system", column = "REF_SYSTEM")
|
||||
@Result(property = "objectReference.systemInstance", column = "REF_INSTANCE")
|
||||
@Result(property = "objectReference.type", column = "REF_TYPE")
|
||||
@Result(property = "objectReference.value", column = "REF_VALUE")
|
||||
@Result(property = "channel", column = "CHANNEL")
|
||||
@Result(property = "received", column = "RECEIVED")
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
List<AttachmentImpl> findAttachmentsByTaskId(@Param("taskId") String taskId);
|
||||
|
||||
@Select(
|
||||
|
@ -71,22 +67,19 @@ public interface AttachmentMapper {
|
|||
+ "</where>"
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "taskId", column = "TASK_ID"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY"),
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "objectReference.company", column = "REF_COMPANY"),
|
||||
@Result(property = "objectReference.system", column = "REF_SYSTEM"),
|
||||
@Result(property = "objectReference.systemInstance", column = "REF_INSTANCE"),
|
||||
@Result(property = "objectReference.type", column = "REF_TYPE"),
|
||||
@Result(property = "objectReference.value", column = "REF_VALUE"),
|
||||
@Result(property = "channel", column = "CHANNEL"),
|
||||
@Result(property = "received", column = "RECEIVED")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "taskId", column = "TASK_ID")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY")
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "objectReference.company", column = "REF_COMPANY")
|
||||
@Result(property = "objectReference.system", column = "REF_SYSTEM")
|
||||
@Result(property = "objectReference.systemInstance", column = "REF_INSTANCE")
|
||||
@Result(property = "objectReference.type", column = "REF_TYPE")
|
||||
@Result(property = "objectReference.value", column = "REF_VALUE")
|
||||
@Result(property = "channel", column = "CHANNEL")
|
||||
@Result(property = "received", column = "RECEIVED")
|
||||
List<AttachmentSummaryImpl> findAttachmentSummariesByTaskIds(
|
||||
@Param("taskIds") List<String> taskIds);
|
||||
|
||||
|
@ -109,14 +102,11 @@ public interface AttachmentMapper {
|
|||
"<script> select CUSTOM_ATTRIBUTES from ATTACHMENT where id = #{attachmentId}"
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = String.class,
|
||||
typeHandler = ClobTypeHandler.class)
|
||||
})
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = String.class,
|
||||
typeHandler = ClobTypeHandler.class)
|
||||
String getCustomAttributesAsString(@Param("attachmentId") String attachmentId);
|
||||
|
||||
@Select(
|
||||
|
@ -125,13 +115,8 @@ public interface AttachmentMapper {
|
|||
+ " WHERE a.CLASSIFICATION_ID = #{classificationId} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "left", column = "ID"),
|
||||
@Result(property = "right", column = "PLANNED")
|
||||
// , javaType = Instant.class,
|
||||
// typeHandler = InstantTypeHandler.class)
|
||||
})
|
||||
@Result(property = "left", column = "ID")
|
||||
@Result(property = "right", column = "PLANNED")
|
||||
List<Pair<String, Instant>> findTaskIdsAndPlannedAffectedByClassificationChange(
|
||||
@Param("classificationId") String classificationId);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ import org.apache.ibatis.annotations.Delete;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -20,14 +19,12 @@ public interface ObjectReferenceMapper {
|
|||
+ "WHERE ID = #{id}"
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "company", column = "COMPANY"),
|
||||
@Result(property = "system", column = "SYSTEM"),
|
||||
@Result(property = "systemInstance", column = "SYSTEM_INSTANCE"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "value", column = "VALUE")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "company", column = "COMPANY")
|
||||
@Result(property = "system", column = "SYSTEM")
|
||||
@Result(property = "systemInstance", column = "SYSTEM_INSTANCE")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "value", column = "VALUE")
|
||||
ObjectReference findById(@Param("id") String id);
|
||||
|
||||
@Select(
|
||||
|
@ -40,14 +37,12 @@ public interface ObjectReferenceMapper {
|
|||
+ "AND VALUE = #{objectReference.value} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "company", column = "COMPANY"),
|
||||
@Result(property = "system", column = "SYSTEM"),
|
||||
@Result(property = "systemInstance", column = "SYSTEM_INSTANCE"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "value", column = "VALUE")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "company", column = "COMPANY")
|
||||
@Result(property = "system", column = "SYSTEM")
|
||||
@Result(property = "systemInstance", column = "SYSTEM_INSTANCE")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "value", column = "VALUE")
|
||||
ObjectReference findByObjectReference(@Param("objectReference") ObjectReference objectReference);
|
||||
|
||||
@Insert(
|
||||
|
|
|
@ -5,7 +5,6 @@ import org.apache.ibatis.annotations.Delete;
|
|||
import org.apache.ibatis.annotations.Insert;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -34,15 +33,12 @@ public interface TaskCommentMapper {
|
|||
+ " ORDER BY CREATED ASC "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "taskId", column = "TASK_ID"),
|
||||
@Result(property = "textField", column = "TEXT_FIELD"),
|
||||
@Result(property = "creator", column = "CREATOR"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "taskId", column = "TASK_ID")
|
||||
@Result(property = "textField", column = "TEXT_FIELD")
|
||||
@Result(property = "creator", column = "CREATOR")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
List<TaskCommentImpl> findByTaskId(@Param("taskId") String taskId);
|
||||
|
||||
@Select(
|
||||
|
@ -51,14 +47,11 @@ public interface TaskCommentMapper {
|
|||
+ "WHERE ID = #{taskCommentId} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "taskId", column = "TASK_ID"),
|
||||
@Result(property = "textField", column = "TEXT_FIELD"),
|
||||
@Result(property = "creator", column = "CREATOR"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "taskId", column = "TASK_ID")
|
||||
@Result(property = "textField", column = "TEXT_FIELD")
|
||||
@Result(property = "creator", column = "CREATOR")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
TaskCommentImpl findById(@Param("taskCommentId") String taskCommentId);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,6 @@ import org.apache.ibatis.annotations.Insert;
|
|||
import org.apache.ibatis.annotations.Options;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -32,68 +31,63 @@ public interface TaskMapper {
|
|||
+ "WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "claimed", column = "CLAIMED"),
|
||||
@Result(property = "completed", column = "COMPLETED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "planned", column = "PLANNED"),
|
||||
@Result(property = "due", column = "DUE"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "creator", column = "CREATOR"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "note", column = "NOTE"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "state", column = "STATE"),
|
||||
@Result(property = "workbasketSummaryImpl.id", column = "WORKBASKET_ID"),
|
||||
@Result(property = "workbasketSummaryImpl.key", column = "WORKBASKET_KEY"),
|
||||
@Result(
|
||||
property = "classificationSummaryImpl.category",
|
||||
column = "CLASSIFICATION_CATEGORY"),
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY"),
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM"),
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE"),
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE"),
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE"),
|
||||
@Result(property = "isRead", column = "IS_READ"),
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED"),
|
||||
@Result(
|
||||
property = "callbackInfo",
|
||||
column = "CALLBACK_INFO",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class),
|
||||
@Result(property = "callbackState", column = "CALLBACK_STATE"),
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8"),
|
||||
@Result(property = "custom9", column = "CUSTOM_9"),
|
||||
@Result(property = "custom10", column = "CUSTOM_10"),
|
||||
@Result(property = "custom11", column = "CUSTOM_11"),
|
||||
@Result(property = "custom12", column = "CUSTOM_12"),
|
||||
@Result(property = "custom13", column = "CUSTOM_13"),
|
||||
@Result(property = "custom14", column = "CUSTOM_14"),
|
||||
@Result(property = "custom15", column = "CUSTOM_15"),
|
||||
@Result(property = "custom16", column = "CUSTOM_16")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "claimed", column = "CLAIMED")
|
||||
@Result(property = "completed", column = "COMPLETED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "planned", column = "PLANNED")
|
||||
@Result(property = "due", column = "DUE")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "creator", column = "CREATOR")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "note", column = "NOTE")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "state", column = "STATE")
|
||||
@Result(property = "workbasketSummaryImpl.id", column = "WORKBASKET_ID")
|
||||
@Result(property = "workbasketSummaryImpl.key", column = "WORKBASKET_KEY")
|
||||
@Result(property = "classificationSummaryImpl.category", column = "CLASSIFICATION_CATEGORY")
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID")
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY")
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM")
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE")
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE")
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE")
|
||||
@Result(property = "isRead", column = "IS_READ")
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED")
|
||||
@Result(
|
||||
property = "callbackInfo",
|
||||
column = "CALLBACK_INFO",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
@Result(property = "callbackState", column = "CALLBACK_STATE")
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
@Result(property = "custom9", column = "CUSTOM_9")
|
||||
@Result(property = "custom10", column = "CUSTOM_10")
|
||||
@Result(property = "custom11", column = "CUSTOM_11")
|
||||
@Result(property = "custom12", column = "CUSTOM_12")
|
||||
@Result(property = "custom13", column = "CUSTOM_13")
|
||||
@Result(property = "custom14", column = "CUSTOM_14")
|
||||
@Result(property = "custom15", column = "CUSTOM_15")
|
||||
@Result(property = "custom16", column = "CUSTOM_16")
|
||||
TaskImpl findById(@Param("id") String id);
|
||||
|
||||
@Insert(
|
||||
|
@ -180,19 +174,16 @@ public interface TaskMapper {
|
|||
+ "</where> "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "taskId", column = "ID"),
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "classificationId", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "taskState", column = "STATE"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "due", column = "DUE"),
|
||||
@Result(property = "planned", column = "PLANNED"),
|
||||
@Result(property = "callbackState", column = "CALLBACK_STATE")
|
||||
})
|
||||
@Result(property = "taskId", column = "ID")
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "classificationId", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "taskState", column = "STATE")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "due", column = "DUE")
|
||||
@Result(property = "planned", column = "PLANNED")
|
||||
@Result(property = "callbackState", column = "CALLBACK_STATE")
|
||||
List<MinimalTaskSummary> findExistingTasks(
|
||||
@Param("taskIds") List<String> taskIds, @Param("externalIds") List<String> externalIds);
|
||||
|
||||
|
@ -258,15 +249,12 @@ public interface TaskMapper {
|
|||
+ "AND STATE IN ( 'READY','CLAIMED') "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "left", column = "ID"),
|
||||
@Result(
|
||||
property = "right",
|
||||
column = "PLANNED",
|
||||
javaType = Instant.class,
|
||||
typeHandler = InstantTypeHandler.class)
|
||||
})
|
||||
@Result(property = "left", column = "ID")
|
||||
@Result(
|
||||
property = "right",
|
||||
column = "PLANNED",
|
||||
javaType = Instant.class,
|
||||
typeHandler = InstantTypeHandler.class)
|
||||
List<Pair<String, Instant>> filterTaskIdsForReadyAndClaimed(
|
||||
@Param("taskIds") List<String> taskIds);
|
||||
|
||||
|
@ -292,7 +280,7 @@ public interface TaskMapper {
|
|||
+ "</otherwise>"
|
||||
+ "</choose>"
|
||||
+ "</script>")
|
||||
@Results(value = {@Result(property = "id", column = "ID")})
|
||||
@Result(property = "id", column = "ID")
|
||||
List<String> filterTaskIdsNotAuthorizedFor(
|
||||
@Param("taskIds") List<String> taskIds, @Param("accessIds") List<String> accessIds);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package pro.taskana.task.internal;
|
|||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.task.api.models.ObjectReference;
|
||||
|
@ -154,58 +153,53 @@ public interface TaskQueryMapper {
|
|||
+ "<if test='selectAndClaim == true'> FETCH FIRST ROW ONLY FOR UPDATE </if>"
|
||||
+ "<if test=\"_databaseId == 'db2'\">WITH RS USE AND KEEP UPDATE LOCKS </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "claimed", column = "CLAIMED"),
|
||||
@Result(property = "completed", column = "COMPLETED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "planned", column = "PLANNED"),
|
||||
@Result(property = "due", column = "DUE"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "creator", column = "CREATOR"),
|
||||
@Result(property = "note", column = "NOTE"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "state", column = "STATE"),
|
||||
@Result(property = "workbasketSummaryImpl.domain", column = "DOMAIN"),
|
||||
@Result(property = "workbasketSummaryImpl.key", column = "WORKBASKET_KEY"),
|
||||
@Result(property = "workbasketSummaryImpl.id", column = "WORKBASKET_ID"),
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY"),
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "classificationSummaryImpl.domain", column = "DOMAIN"),
|
||||
@Result(
|
||||
property = "classificationSummaryImpl.category",
|
||||
column = "CLASSIFICATION_CATEGORY"),
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY"),
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM"),
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE"),
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE"),
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE"),
|
||||
@Result(property = "isRead", column = "IS_READ"),
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8"),
|
||||
@Result(property = "custom9", column = "CUSTOM_9"),
|
||||
@Result(property = "custom10", column = "CUSTOM_10"),
|
||||
@Result(property = "custom11", column = "CUSTOM_11"),
|
||||
@Result(property = "custom12", column = "CUSTOM_12"),
|
||||
@Result(property = "custom13", column = "CUSTOM_13"),
|
||||
@Result(property = "custom14", column = "CUSTOM_14"),
|
||||
@Result(property = "custom15", column = "CUSTOM_15"),
|
||||
@Result(property = "custom16", column = "CUSTOM_16")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "claimed", column = "CLAIMED")
|
||||
@Result(property = "completed", column = "COMPLETED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "planned", column = "PLANNED")
|
||||
@Result(property = "due", column = "DUE")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "creator", column = "CREATOR")
|
||||
@Result(property = "note", column = "NOTE")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "state", column = "STATE")
|
||||
@Result(property = "workbasketSummaryImpl.domain", column = "DOMAIN")
|
||||
@Result(property = "workbasketSummaryImpl.key", column = "WORKBASKET_KEY")
|
||||
@Result(property = "workbasketSummaryImpl.id", column = "WORKBASKET_ID")
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY")
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "classificationSummaryImpl.domain", column = "DOMAIN")
|
||||
@Result(property = "classificationSummaryImpl.category", column = "CLASSIFICATION_CATEGORY")
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID")
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY")
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM")
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE")
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE")
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE")
|
||||
@Result(property = "isRead", column = "IS_READ")
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
@Result(property = "custom9", column = "CUSTOM_9")
|
||||
@Result(property = "custom10", column = "CUSTOM_10")
|
||||
@Result(property = "custom11", column = "CUSTOM_11")
|
||||
@Result(property = "custom12", column = "CUSTOM_12")
|
||||
@Result(property = "custom13", column = "CUSTOM_13")
|
||||
@Result(property = "custom14", column = "CUSTOM_14")
|
||||
@Result(property = "custom15", column = "CUSTOM_15")
|
||||
@Result(property = "custom16", column = "CUSTOM_16")
|
||||
List<TaskSummaryImpl> queryTaskSummaries(TaskQueryImpl taskQuery);
|
||||
|
||||
@Select(
|
||||
|
@ -422,58 +416,53 @@ public interface TaskQueryMapper {
|
|||
+ "<if test='selectAndClaim == true'>FETCH FIRST ROW ONLY FOR UPDATE WITH RS USE AND KEEP UPDATE LOCKS</if>"
|
||||
+ "<if test='selectAndClaim == false'> with UR</if>"
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "claimed", column = "CLAIMED"),
|
||||
@Result(property = "completed", column = "COMPLETED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "planned", column = "PLANNED"),
|
||||
@Result(property = "due", column = "DUE"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "creator", column = "CREATOR"),
|
||||
@Result(property = "note", column = "NOTE"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "state", column = "STATE"),
|
||||
@Result(property = "workbasketSummaryImpl.domain", column = "DOMAIN"),
|
||||
@Result(property = "workbasketSummaryImpl.key", column = "WORKBASKET_KEY"),
|
||||
@Result(property = "workbasketSummaryImpl.id", column = "WORKBASKET_ID"),
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY"),
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "classificationSummaryImpl.domain", column = "DOMAIN"),
|
||||
@Result(
|
||||
property = "classificationSummaryImpl.category",
|
||||
column = "CLASSIFICATION_CATEGORY"),
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY"),
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM"),
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE"),
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE"),
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE"),
|
||||
@Result(property = "isRead", column = "IS_READ"),
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8"),
|
||||
@Result(property = "custom9", column = "CUSTOM_9"),
|
||||
@Result(property = "custom10", column = "CUSTOM_10"),
|
||||
@Result(property = "custom11", column = "CUSTOM_11"),
|
||||
@Result(property = "custom12", column = "CUSTOM_12"),
|
||||
@Result(property = "custom13", column = "CUSTOM_13"),
|
||||
@Result(property = "custom14", column = "CUSTOM_14"),
|
||||
@Result(property = "custom15", column = "CUSTOM_15"),
|
||||
@Result(property = "custom16", column = "CUSTOM_16")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "externalId", column = "EXTERNAL_ID")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "claimed", column = "CLAIMED")
|
||||
@Result(property = "completed", column = "COMPLETED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "planned", column = "PLANNED")
|
||||
@Result(property = "due", column = "DUE")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "creator", column = "CREATOR")
|
||||
@Result(property = "note", column = "NOTE")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "state", column = "STATE")
|
||||
@Result(property = "workbasketSummaryImpl.domain", column = "DOMAIN")
|
||||
@Result(property = "workbasketSummaryImpl.key", column = "WORKBASKET_KEY")
|
||||
@Result(property = "workbasketSummaryImpl.id", column = "WORKBASKET_ID")
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY")
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "classificationSummaryImpl.domain", column = "DOMAIN")
|
||||
@Result(property = "classificationSummaryImpl.category", column = "CLASSIFICATION_CATEGORY")
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID")
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY")
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM")
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE")
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE")
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE")
|
||||
@Result(property = "isRead", column = "IS_READ")
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
@Result(property = "custom9", column = "CUSTOM_9")
|
||||
@Result(property = "custom10", column = "CUSTOM_10")
|
||||
@Result(property = "custom11", column = "CUSTOM_11")
|
||||
@Result(property = "custom12", column = "CUSTOM_12")
|
||||
@Result(property = "custom13", column = "CUSTOM_13")
|
||||
@Result(property = "custom14", column = "CUSTOM_14")
|
||||
@Result(property = "custom15", column = "CUSTOM_15")
|
||||
@Result(property = "custom16", column = "CUSTOM_16")
|
||||
List<TaskSummaryImpl> queryTaskSummariesDb2(TaskQueryImpl taskQuery);
|
||||
|
||||
@Select(
|
||||
|
@ -488,14 +477,12 @@ public interface TaskQueryMapper {
|
|||
+ "</where>"
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "company", column = "COMPANY"),
|
||||
@Result(property = "system", column = "SYSTEM"),
|
||||
@Result(property = "systemInstance", column = "SYSTEM_INSTANCE"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "value", column = "VALUE")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "company", column = "COMPANY")
|
||||
@Result(property = "system", column = "SYSTEM")
|
||||
@Result(property = "systemInstance", column = "SYSTEM_INSTANCE")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "value", column = "VALUE")
|
||||
List<ObjectReference> queryObjectReferences(ObjectReferenceQueryImpl objectReference);
|
||||
|
||||
@Select(
|
||||
|
|
|
@ -6,7 +6,6 @@ import org.apache.ibatis.annotations.Insert;
|
|||
import org.apache.ibatis.annotations.Options;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -21,30 +20,27 @@ public interface WorkbasketAccessMapper {
|
|||
+ "FROM WORKBASKET_ACCESS_LIST WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "accessId", column = "ACCESS_ID"),
|
||||
@Result(property = "accessName", column = "ACCESS_NAME"),
|
||||
@Result(property = "permRead", column = "PERM_READ"),
|
||||
@Result(property = "permOpen", column = "PERM_OPEN"),
|
||||
@Result(property = "permAppend", column = "PERM_APPEND"),
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER"),
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE"),
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1"),
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2"),
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3"),
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4"),
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5"),
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6"),
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7"),
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8"),
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9"),
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10"),
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11"),
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "accessId", column = "ACCESS_ID")
|
||||
@Result(property = "accessName", column = "ACCESS_NAME")
|
||||
@Result(property = "permRead", column = "PERM_READ")
|
||||
@Result(property = "permOpen", column = "PERM_OPEN")
|
||||
@Result(property = "permAppend", column = "PERM_APPEND")
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER")
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE")
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1")
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2")
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3")
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4")
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5")
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6")
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7")
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8")
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9")
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10")
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11")
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
WorkbasketAccessItemImpl findById(@Param("id") String id);
|
||||
|
||||
@Select(
|
||||
|
@ -52,31 +48,28 @@ public interface WorkbasketAccessMapper {
|
|||
+ "FROM WORKBASKET_ACCESS_LIST AS WBA LEFT JOIN WORKBASKET AS WB ON WORKBASKET_ID = WB.ID WHERE WORKBASKET_ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "workbasketKey", column = "KEY"),
|
||||
@Result(property = "accessId", column = "ACCESS_ID"),
|
||||
@Result(property = "accessName", column = "ACCESS_NAME"),
|
||||
@Result(property = "permRead", column = "PERM_READ"),
|
||||
@Result(property = "permOpen", column = "PERM_OPEN"),
|
||||
@Result(property = "permAppend", column = "PERM_APPEND"),
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER"),
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE"),
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1"),
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2"),
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3"),
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4"),
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5"),
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6"),
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7"),
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8"),
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9"),
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10"),
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11"),
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "workbasketKey", column = "KEY")
|
||||
@Result(property = "accessId", column = "ACCESS_ID")
|
||||
@Result(property = "accessName", column = "ACCESS_NAME")
|
||||
@Result(property = "permRead", column = "PERM_READ")
|
||||
@Result(property = "permOpen", column = "PERM_OPEN")
|
||||
@Result(property = "permAppend", column = "PERM_APPEND")
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER")
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE")
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1")
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2")
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3")
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4")
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5")
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6")
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7")
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8")
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9")
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10")
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11")
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
List<WorkbasketAccessItemImpl> findByWorkbasketId(@Param("id") String id);
|
||||
|
||||
@Select(
|
||||
|
@ -84,31 +77,28 @@ public interface WorkbasketAccessMapper {
|
|||
+ "FROM WORKBASKET_ACCESS_LIST AS WBA LEFT JOIN WORKBASKET AS WB ON WORKBASKET_ID = WB.ID WHERE ACCESS_ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "workbasketKey", column = "KEY"),
|
||||
@Result(property = "accessId", column = "ACCESS_ID"),
|
||||
@Result(property = "accessName", column = "ACCESS_NAME"),
|
||||
@Result(property = "permRead", column = "PERM_READ"),
|
||||
@Result(property = "permOpen", column = "PERM_OPEN"),
|
||||
@Result(property = "permAppend", column = "PERM_APPEND"),
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER"),
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE"),
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1"),
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2"),
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3"),
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4"),
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5"),
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6"),
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7"),
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8"),
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9"),
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10"),
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11"),
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "workbasketKey", column = "KEY")
|
||||
@Result(property = "accessId", column = "ACCESS_ID")
|
||||
@Result(property = "accessName", column = "ACCESS_NAME")
|
||||
@Result(property = "permRead", column = "PERM_READ")
|
||||
@Result(property = "permOpen", column = "PERM_OPEN")
|
||||
@Result(property = "permAppend", column = "PERM_APPEND")
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER")
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE")
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1")
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2")
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3")
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4")
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5")
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6")
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7")
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8")
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9")
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10")
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11")
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
List<WorkbasketAccessItemImpl> findByAccessId(@Param("id") String id);
|
||||
|
||||
@Insert(
|
||||
|
@ -146,30 +136,27 @@ public interface WorkbasketAccessMapper {
|
|||
+ "AND ACCESS_ID IN(<foreach item='item' collection='accessIds' separator=',' >#{item}</foreach>) "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "accessId", column = "ACCESS_ID"),
|
||||
@Result(property = "accessName", column = "ACCESS_NAME"),
|
||||
@Result(property = "permRead", column = "P_READ"),
|
||||
@Result(property = "permOpen", column = "P_OPEN"),
|
||||
@Result(property = "permAppend", column = "P_APPEND"),
|
||||
@Result(property = "permTransfer", column = "P_TRANSFER"),
|
||||
@Result(property = "permDistribute", column = "P_DISTRIBUTE"),
|
||||
@Result(property = "permCustom1", column = "P_CUSTOM_1"),
|
||||
@Result(property = "permCustom2", column = "P_CUSTOM_2"),
|
||||
@Result(property = "permCustom3", column = "P_CUSTOM_3"),
|
||||
@Result(property = "permCustom4", column = "P_CUSTOM_4"),
|
||||
@Result(property = "permCustom5", column = "P_CUSTOM_5"),
|
||||
@Result(property = "permCustom6", column = "P_CUSTOM_6"),
|
||||
@Result(property = "permCustom7", column = "P_CUSTOM_7"),
|
||||
@Result(property = "permCustom8", column = "P_CUSTOM_8"),
|
||||
@Result(property = "permCustom9", column = "P_CUSTOM_9"),
|
||||
@Result(property = "permCustom10", column = "P_CUSTOM_10"),
|
||||
@Result(property = "permCustom11", column = "P_CUSTOM_11"),
|
||||
@Result(property = "permCustom12", column = "P_CUSTOM_12")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "accessId", column = "ACCESS_ID")
|
||||
@Result(property = "accessName", column = "ACCESS_NAME")
|
||||
@Result(property = "permRead", column = "P_READ")
|
||||
@Result(property = "permOpen", column = "P_OPEN")
|
||||
@Result(property = "permAppend", column = "P_APPEND")
|
||||
@Result(property = "permTransfer", column = "P_TRANSFER")
|
||||
@Result(property = "permDistribute", column = "P_DISTRIBUTE")
|
||||
@Result(property = "permCustom1", column = "P_CUSTOM_1")
|
||||
@Result(property = "permCustom2", column = "P_CUSTOM_2")
|
||||
@Result(property = "permCustom3", column = "P_CUSTOM_3")
|
||||
@Result(property = "permCustom4", column = "P_CUSTOM_4")
|
||||
@Result(property = "permCustom5", column = "P_CUSTOM_5")
|
||||
@Result(property = "permCustom6", column = "P_CUSTOM_6")
|
||||
@Result(property = "permCustom7", column = "P_CUSTOM_7")
|
||||
@Result(property = "permCustom8", column = "P_CUSTOM_8")
|
||||
@Result(property = "permCustom9", column = "P_CUSTOM_9")
|
||||
@Result(property = "permCustom10", column = "P_CUSTOM_10")
|
||||
@Result(property = "permCustom11", column = "P_CUSTOM_11")
|
||||
@Result(property = "permCustom12", column = "P_CUSTOM_12")
|
||||
WorkbasketAccessItemImpl findByWorkbasketAndAccessId(
|
||||
@Param("workbasketId") String workbasketId, @Param("accessIds") List<String> accessIds);
|
||||
|
||||
|
@ -188,29 +175,26 @@ public interface WorkbasketAccessMapper {
|
|||
+ "AND ACCESS_ID IN(<foreach item='item' collection='accessIds' separator=',' >#{item}</foreach>) "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "accessId", column = "ACCESS_ID"),
|
||||
@Result(property = "accessName", column = "ACCESS_NAME"),
|
||||
@Result(property = "permRead", column = "P_READ"),
|
||||
@Result(property = "permOpen", column = "P_OPEN"),
|
||||
@Result(property = "permAppend", column = "P_APPEND"),
|
||||
@Result(property = "permTransfer", column = "P_TRANSFER"),
|
||||
@Result(property = "permDistribute", column = "P_DISTRIBUTE"),
|
||||
@Result(property = "permCustom1", column = "P_CUSTOM_1"),
|
||||
@Result(property = "permCustom2", column = "P_CUSTOM_2"),
|
||||
@Result(property = "permCustom3", column = "P_CUSTOM_3"),
|
||||
@Result(property = "permCustom4", column = "P_CUSTOM_4"),
|
||||
@Result(property = "permCustom5", column = "P_CUSTOM_5"),
|
||||
@Result(property = "permCustom6", column = "P_CUSTOM_6"),
|
||||
@Result(property = "permCustom7", column = "P_CUSTOM_7"),
|
||||
@Result(property = "permCustom8", column = "P_CUSTOM_8"),
|
||||
@Result(property = "permCustom9", column = "P_CUSTOM_9"),
|
||||
@Result(property = "permCustom10", column = "P_CUSTOM_10"),
|
||||
@Result(property = "permCustom11", column = "P_CUSTOM_11"),
|
||||
@Result(property = "permCustom12", column = "P_CUSTOM_12")
|
||||
})
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "accessId", column = "ACCESS_ID")
|
||||
@Result(property = "accessName", column = "ACCESS_NAME")
|
||||
@Result(property = "permRead", column = "P_READ")
|
||||
@Result(property = "permOpen", column = "P_OPEN")
|
||||
@Result(property = "permAppend", column = "P_APPEND")
|
||||
@Result(property = "permTransfer", column = "P_TRANSFER")
|
||||
@Result(property = "permDistribute", column = "P_DISTRIBUTE")
|
||||
@Result(property = "permCustom1", column = "P_CUSTOM_1")
|
||||
@Result(property = "permCustom2", column = "P_CUSTOM_2")
|
||||
@Result(property = "permCustom3", column = "P_CUSTOM_3")
|
||||
@Result(property = "permCustom4", column = "P_CUSTOM_4")
|
||||
@Result(property = "permCustom5", column = "P_CUSTOM_5")
|
||||
@Result(property = "permCustom6", column = "P_CUSTOM_6")
|
||||
@Result(property = "permCustom7", column = "P_CUSTOM_7")
|
||||
@Result(property = "permCustom8", column = "P_CUSTOM_8")
|
||||
@Result(property = "permCustom9", column = "P_CUSTOM_9")
|
||||
@Result(property = "permCustom10", column = "P_CUSTOM_10")
|
||||
@Result(property = "permCustom11", column = "P_CUSTOM_11")
|
||||
@Result(property = "permCustom12", column = "P_CUSTOM_12")
|
||||
WorkbasketAccessItemImpl findByWorkbasketKeyDomainAndAccessId(
|
||||
@Param("workbasketKey") String workbasketKey,
|
||||
@Param("domain") String domain,
|
||||
|
|
|
@ -6,7 +6,6 @@ import org.apache.ibatis.annotations.Insert;
|
|||
import org.apache.ibatis.annotations.Options;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
|
@ -21,78 +20,69 @@ public interface WorkbasketMapper {
|
|||
"<script>SELECT ID, KEY, CREATED, MODIFIED, NAME, DOMAIN, TYPE, DESCRIPTION, OWNER, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4, MARKED_FOR_DELETION FROM WORKBASKET WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4"),
|
||||
@Result(property = "markedForDeletion", column = "MARKED_FOR_DELETION")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
@Result(property = "markedForDeletion", column = "MARKED_FOR_DELETION")
|
||||
WorkbasketImpl findById(@Param("id") String id);
|
||||
|
||||
@Select(
|
||||
"<script>SELECT ID, KEY, CREATED, MODIFIED, NAME, DOMAIN, TYPE, DESCRIPTION, OWNER, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4, MARKED_FOR_DELETION FROM WORKBASKET WHERE UPPER(KEY) = UPPER(#{key}) and UPPER(DOMAIN) = UPPER(#{domain}) "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4"),
|
||||
@Result(property = "markedForDeletion", column = "MARKED_FOR_DELETION")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
@Result(property = "markedForDeletion", column = "MARKED_FOR_DELETION")
|
||||
WorkbasketImpl findByKeyAndDomain(@Param("key") String key, @Param("domain") String domain);
|
||||
|
||||
@Select(
|
||||
"<script>SELECT ID, KEY, NAME, DESCRIPTION, OWNER, DOMAIN, TYPE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4 FROM WORKBASKET WHERE ID IN (SELECT TARGET_ID FROM DISTRIBUTION_TARGETS WHERE SOURCE_ID = #{id}) "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
List<WorkbasketSummaryImpl> findDistributionTargets(@Param("id") String id);
|
||||
|
||||
@Select(
|
||||
|
@ -100,72 +90,63 @@ public interface WorkbasketMapper {
|
|||
+ " WHERE ID IN (SELECT SOURCE_ID FROM DISTRIBUTION_TARGETS WHERE TARGET_ID = #{id}) "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
List<WorkbasketSummaryImpl> findDistributionSources(@Param("id") String id);
|
||||
|
||||
@Select(
|
||||
"<script>SELECT ID, KEY, NAME, DESCRIPTION, OWNER, DOMAIN, TYPE, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, ORG_LEVEL_1, ORG_LEVEL_2, ORG_LEVEL_3, ORG_LEVEL_4 FROM WORKBASKET WHERE ID = #{id} "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
List<WorkbasketSummaryImpl> findSummaryById(@Param("key") String id);
|
||||
|
||||
@Select(
|
||||
"<script>SELECT * FROM WORKBASKET ORDER BY id "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
List<WorkbasketSummaryImpl> findAll();
|
||||
|
||||
@Insert(
|
||||
|
|
|
@ -2,7 +2,6 @@ package pro.taskana.workbasket.internal;
|
|||
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import pro.taskana.workbasket.api.WorkbasketAccessItemQuery;
|
||||
|
@ -97,24 +96,22 @@ public interface WorkbasketQueryMapper {
|
|||
+ "<if test='!orderBy.isEmpty()'>ORDER BY <foreach item='orderItem' collection='orderBy' separator=',' >${orderItem}</foreach></if> "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "key", column = "KEY"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "type", column = "TYPE"),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1"),
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2"),
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3"),
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4"),
|
||||
@Result(property = "markedForDeletion", column = "MARKED_FOR_DELETION")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "key", column = "KEY")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "type", column = "TYPE")
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "orgLevel1", column = "ORG_LEVEL_1")
|
||||
@Result(property = "orgLevel2", column = "ORG_LEVEL_2")
|
||||
@Result(property = "orgLevel3", column = "ORG_LEVEL_3")
|
||||
@Result(property = "orgLevel4", column = "ORG_LEVEL_4")
|
||||
@Result(property = "markedForDeletion", column = "MARKED_FOR_DELETION")
|
||||
List<WorkbasketSummaryImpl> queryWorkbasketSummaries(WorkbasketQueryImpl workbasketQuery);
|
||||
|
||||
@Select(
|
||||
|
@ -133,30 +130,28 @@ public interface WorkbasketQueryMapper {
|
|||
+ "<if test='!orderBy.isEmpty()'>ORDER BY <foreach item='orderItem' collection='orderBy' separator=',' >${orderItem}</foreach></if> "
|
||||
+ "<if test=\"_databaseId == 'db2'\">with UR </if> "
|
||||
+ "</script>")
|
||||
@Results({
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID"),
|
||||
@Result(property = "workbasketKey", column = "KEY"),
|
||||
@Result(property = "accessId", column = "ACCESS_ID"),
|
||||
@Result(property = "accessName", column = "ACCESS_NAME"),
|
||||
@Result(property = "permRead", column = "PERM_READ"),
|
||||
@Result(property = "permOpen", column = "PERM_OPEN"),
|
||||
@Result(property = "permAppend", column = "PERM_APPEND"),
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER"),
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE"),
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1"),
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2"),
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3"),
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4"),
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5"),
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6"),
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7"),
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8"),
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9"),
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10"),
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11"),
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "workbasketId", column = "WORKBASKET_ID")
|
||||
@Result(property = "workbasketKey", column = "KEY")
|
||||
@Result(property = "accessId", column = "ACCESS_ID")
|
||||
@Result(property = "accessName", column = "ACCESS_NAME")
|
||||
@Result(property = "permRead", column = "PERM_READ")
|
||||
@Result(property = "permOpen", column = "PERM_OPEN")
|
||||
@Result(property = "permAppend", column = "PERM_APPEND")
|
||||
@Result(property = "permTransfer", column = "PERM_TRANSFER")
|
||||
@Result(property = "permDistribute", column = "PERM_DISTRIBUTE")
|
||||
@Result(property = "permCustom1", column = "PERM_CUSTOM_1")
|
||||
@Result(property = "permCustom2", column = "PERM_CUSTOM_2")
|
||||
@Result(property = "permCustom3", column = "PERM_CUSTOM_3")
|
||||
@Result(property = "permCustom4", column = "PERM_CUSTOM_4")
|
||||
@Result(property = "permCustom5", column = "PERM_CUSTOM_5")
|
||||
@Result(property = "permCustom6", column = "PERM_CUSTOM_6")
|
||||
@Result(property = "permCustom7", column = "PERM_CUSTOM_7")
|
||||
@Result(property = "permCustom8", column = "PERM_CUSTOM_8")
|
||||
@Result(property = "permCustom9", column = "PERM_CUSTOM_9")
|
||||
@Result(property = "permCustom10", column = "PERM_CUSTOM_10")
|
||||
@Result(property = "permCustom11", column = "PERM_CUSTOM_11")
|
||||
@Result(property = "permCustom12", column = "PERM_CUSTOM_12")
|
||||
List<WorkbasketAccessItemImpl> queryWorkbasketAccessItems(
|
||||
WorkbasketAccessItemQuery accessItemQuery);
|
||||
|
||||
|
|
|
@ -42,12 +42,10 @@ public class WorkbasketCleanupJob extends AbstractTaskanaJob {
|
|||
LOGGER.info("Running job to delete all workbaskets marked for deletion");
|
||||
try {
|
||||
List<String> workbasketsMarkedForDeletion = getWorkbasketsMarkedForDeletion();
|
||||
|
||||
int totalNumberOfWorkbasketDeleted =
|
||||
CollectionUtil.partitionBasedOnSize(workbasketsMarkedForDeletion, batchSize).stream()
|
||||
.mapToInt(this::deleteWorkbasketsTransactionally)
|
||||
.sum();
|
||||
|
||||
LOGGER.info(
|
||||
"Job ended successfully. {} workbaskets deleted.", totalNumberOfWorkbasketDeleted);
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -89,6 +89,7 @@ public class WorkbasketImpl extends WorkbasketSummaryImpl implements Workbasket
|
|||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean canEqual(Object other) {
|
||||
return (other instanceof WorkbasketImpl);
|
||||
}
|
||||
|
|
|
@ -100,11 +100,11 @@ class ProvideClassificationReportAccTest extends AbstractReportAccTest {
|
|||
assertThat(report.getRow("L30000").getTotalValue()).isEqualTo(7);
|
||||
assertThat(report.getRow("L40000").getTotalValue()).isEqualTo(10);
|
||||
assertThat(report.getRow("L50000").getTotalValue()).isEqualTo(13);
|
||||
assertThat(report.getRow("L10000").getCells().length).isEqualTo(0);
|
||||
assertThat(report.getRow("L20000").getCells().length).isEqualTo(0);
|
||||
assertThat(report.getRow("L30000").getCells().length).isEqualTo(0);
|
||||
assertThat(report.getRow("L40000").getCells().length).isEqualTo(0);
|
||||
assertThat(report.getRow("L50000").getCells().length).isEqualTo(0);
|
||||
assertThat(report.getRow("L10000").getCells()).isEmpty();
|
||||
assertThat(report.getRow("L20000").getCells()).isEmpty();
|
||||
assertThat(report.getRow("L30000").getCells()).isEmpty();
|
||||
assertThat(report.getRow("L40000").getCells()).isEmpty();
|
||||
assertThat(report.getRow("L50000").getCells()).isEmpty();
|
||||
assertThat(report.getSumRow().getTotalValue()).isEqualTo(50);
|
||||
}
|
||||
|
||||
|
|
|
@ -135,14 +135,14 @@ class ProvideDetailedClassificationReportAccTest extends AbstractReportAccTest {
|
|||
assertThat(row1.getTotalValue()).isEqualTo(10);
|
||||
assertThat(row1.getFoldableRow("L11000").getTotalValue()).isEqualTo(3);
|
||||
assertThat(row1.getFoldableRow("N/A").getTotalValue()).isEqualTo(7);
|
||||
assertThat(row1.getCells().length).isEqualTo(0);
|
||||
assertThat(row1.getCells()).isEmpty();
|
||||
assertThat(row1.getFoldableRowCount()).isEqualTo(2);
|
||||
|
||||
FoldableRow<DetailedMonitorQueryItem> row2 = report.getRow("L20000");
|
||||
assertThat(row2.getTotalValue()).isEqualTo(10);
|
||||
assertThat(row2.getFoldableRow("L22000").getTotalValue()).isEqualTo(4);
|
||||
assertThat(row2.getFoldableRow("N/A").getTotalValue()).isEqualTo(6);
|
||||
assertThat(row2.getCells().length).isEqualTo(0);
|
||||
assertThat(row2.getCells()).isEmpty();
|
||||
assertThat(row2.getFoldableRowCount()).isEqualTo(2);
|
||||
|
||||
FoldableRow<DetailedMonitorQueryItem> row3 = report.getRow("L30000");
|
||||
|
@ -150,19 +150,19 @@ class ProvideDetailedClassificationReportAccTest extends AbstractReportAccTest {
|
|||
assertThat(row3.getFoldableRow("L33000").getTotalValue()).isEqualTo(3);
|
||||
assertThat(row3.getFoldableRow("L99000").getTotalValue()).isEqualTo(1);
|
||||
assertThat(row3.getFoldableRow("N/A").getTotalValue()).isEqualTo(3);
|
||||
assertThat(row3.getCells().length).isEqualTo(0);
|
||||
assertThat(row3.getCells()).isEmpty();
|
||||
assertThat(row3.getFoldableRowCount()).isEqualTo(3);
|
||||
|
||||
FoldableRow<DetailedMonitorQueryItem> row4 = report.getRow("L40000");
|
||||
assertThat(row4.getTotalValue()).isEqualTo(10);
|
||||
assertThat(row4.getFoldableRow("N/A").getTotalValue()).isEqualTo(10);
|
||||
assertThat(row4.getCells().length).isEqualTo(0);
|
||||
assertThat(row4.getCells()).isEmpty();
|
||||
assertThat(row4.getFoldableRowCount()).isEqualTo(1);
|
||||
|
||||
FoldableRow<DetailedMonitorQueryItem> row5 = report.getRow("L50000");
|
||||
assertThat(row5.getTotalValue()).isEqualTo(13);
|
||||
assertThat(row5.getFoldableRow("N/A").getTotalValue()).isEqualTo(13);
|
||||
assertThat(row5.getCells().length).isEqualTo(0);
|
||||
assertThat(row5.getCells()).isEmpty();
|
||||
assertThat(row5.getFoldableRowCount()).isEqualTo(1);
|
||||
|
||||
assertThat(report.getSumRow().getTotalValue()).isEqualTo(50);
|
||||
|
|
|
@ -4,7 +4,6 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Result;
|
||||
import org.apache.ibatis.annotations.Results;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.type.ClobTypeHandler;
|
||||
|
||||
|
@ -16,66 +15,58 @@ import pro.taskana.task.internal.models.TaskImpl;
|
|||
public interface TaskTestMapper {
|
||||
|
||||
@Select("select CUSTOM_ATTRIBUTES from TASK where id = #{taskId}")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = String.class,
|
||||
typeHandler = ClobTypeHandler.class)
|
||||
})
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = String.class,
|
||||
typeHandler = ClobTypeHandler.class)
|
||||
String getCustomAttributesAsString(@Param("taskId") String taskId);
|
||||
|
||||
@Select(
|
||||
"SELECT ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, DUE, NAME, CREATOR, DESCRIPTION, NOTE, PRIORITY, STATE, CLASSIFICATION_CATEGORY, CLASSIFICATION_KEY, CLASSIFICATION_ID, WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_ATTRIBUTES, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10 "
|
||||
+ "FROM TASK "
|
||||
+ "WHERE CUSTOM_ATTRIBUTES like #{searchText}")
|
||||
@Results(
|
||||
value = {
|
||||
@Result(property = "id", column = "ID"),
|
||||
@Result(property = "created", column = "CREATED"),
|
||||
@Result(property = "claimed", column = "CLAIMED"),
|
||||
@Result(property = "completed", column = "COMPLETED"),
|
||||
@Result(property = "modified", column = "MODIFIED"),
|
||||
@Result(property = "planned", column = "PLANNED"),
|
||||
@Result(property = "due", column = "DUE"),
|
||||
@Result(property = "name", column = "NAME"),
|
||||
@Result(property = "creator", column = "CREATOR"),
|
||||
@Result(property = "description", column = "DESCRIPTION"),
|
||||
@Result(property = "note", column = "NOTE"),
|
||||
@Result(property = "priority", column = "PRIORITY"),
|
||||
@Result(property = "state", column = "STATE"),
|
||||
@Result(
|
||||
property = "classificationSummaryImpl.category",
|
||||
column = "CLASSIFICATION_CATEGORY"),
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID"),
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY"),
|
||||
@Result(property = "domain", column = "DOMAIN"),
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID"),
|
||||
@Result(property = "owner", column = "OWNER"),
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY"),
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM"),
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE"),
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE"),
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE"),
|
||||
@Result(property = "isRead", column = "IS_READ"),
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED"),
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class),
|
||||
@Result(property = "custom1", column = "CUSTOM_1"),
|
||||
@Result(property = "custom2", column = "CUSTOM_2"),
|
||||
@Result(property = "custom3", column = "CUSTOM_3"),
|
||||
@Result(property = "custom4", column = "CUSTOM_4"),
|
||||
@Result(property = "custom5", column = "CUSTOM_5"),
|
||||
@Result(property = "custom6", column = "CUSTOM_6"),
|
||||
@Result(property = "custom7", column = "CUSTOM_7"),
|
||||
@Result(property = "custom8", column = "CUSTOM_8"),
|
||||
@Result(property = "custom9", column = "CUSTOM_9"),
|
||||
@Result(property = "custom10", column = "CUSTOM_10")
|
||||
})
|
||||
@Result(property = "id", column = "ID")
|
||||
@Result(property = "created", column = "CREATED")
|
||||
@Result(property = "claimed", column = "CLAIMED")
|
||||
@Result(property = "completed", column = "COMPLETED")
|
||||
@Result(property = "modified", column = "MODIFIED")
|
||||
@Result(property = "planned", column = "PLANNED")
|
||||
@Result(property = "due", column = "DUE")
|
||||
@Result(property = "name", column = "NAME")
|
||||
@Result(property = "creator", column = "CREATOR")
|
||||
@Result(property = "description", column = "DESCRIPTION")
|
||||
@Result(property = "note", column = "NOTE")
|
||||
@Result(property = "priority", column = "PRIORITY")
|
||||
@Result(property = "state", column = "STATE")
|
||||
@Result(property = "classificationSummaryImpl.category", column = "CLASSIFICATION_CATEGORY")
|
||||
@Result(property = "classificationSummaryImpl.id", column = "CLASSIFICATION_ID")
|
||||
@Result(property = "classificationSummaryImpl.key", column = "CLASSIFICATION_KEY")
|
||||
@Result(property = "domain", column = "DOMAIN")
|
||||
@Result(property = "businessProcessId", column = "BUSINESS_PROCESS_ID")
|
||||
@Result(property = "parentBusinessProcessId", column = "PARENT_BUSINESS_PROCESS_ID")
|
||||
@Result(property = "owner", column = "OWNER")
|
||||
@Result(property = "primaryObjRef.company", column = "POR_COMPANY")
|
||||
@Result(property = "primaryObjRef.system", column = "POR_SYSTEM")
|
||||
@Result(property = "primaryObjRef.systemInstance", column = "POR_INSTANCE")
|
||||
@Result(property = "primaryObjRef.type", column = "POR_TYPE")
|
||||
@Result(property = "primaryObjRef.value", column = "POR_VALUE")
|
||||
@Result(property = "isRead", column = "IS_READ")
|
||||
@Result(property = "isTransferred", column = "IS_TRANSFERRED")
|
||||
@Result(
|
||||
property = "customAttributes",
|
||||
column = "CUSTOM_ATTRIBUTES",
|
||||
javaType = Map.class,
|
||||
typeHandler = MapTypeHandler.class)
|
||||
@Result(property = "custom1", column = "CUSTOM_1")
|
||||
@Result(property = "custom2", column = "CUSTOM_2")
|
||||
@Result(property = "custom3", column = "CUSTOM_3")
|
||||
@Result(property = "custom4", column = "CUSTOM_4")
|
||||
@Result(property = "custom5", column = "CUSTOM_5")
|
||||
@Result(property = "custom6", column = "CUSTOM_6")
|
||||
@Result(property = "custom7", column = "CUSTOM_7")
|
||||
@Result(property = "custom8", column = "CUSTOM_8")
|
||||
@Result(property = "custom9", column = "CUSTOM_9")
|
||||
@Result(property = "custom10", column = "CUSTOM_10")
|
||||
List<TaskImpl> selectTasksByCustomAttributeLike(@Param("searchText") String searchText);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue