Skip to content

Commit

Permalink
refactor(engine): Change Column Name to CREATE_TIME_
Browse files Browse the repository at this point in the history
  • Loading branch information
psavidis committed Nov 7, 2023
1 parent 61afabd commit 73eac0d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class ExternalTaskQueryDto extends AbstractQueryDto<ExternalTaskQuery> {
"processDefinitionKey", ExternalTaskQuery::orderByProcessDefinitionKey,
"tenantId", ExternalTaskQuery::orderByTenantId,
"taskPriority", ExternalTaskQuery::orderByPriority,
"creationDate", ExternalTaskQuery::orderByCreationDate
"createTime", ExternalTaskQuery::orderByCreateTime
);

protected String externalTaskId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public interface ExternalTaskQuery extends Query<ExternalTaskQuery, ExternalTask
ExternalTaskQuery orderByPriority();

/**
* Order by creation date (needs to be followed by {@link #asc()} or {@link #desc()}).
* Order by create time (needs to be followed by {@link #asc()} or {@link #desc()}).
*/
ExternalTaskQuery orderByCreationDate();
ExternalTaskQuery orderByCreateTime();
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.Date;
import java.util.List;
import java.util.Set;

import org.camunda.bpm.engine.externaltask.ExternalTask;
import org.camunda.bpm.engine.externaltask.ExternalTaskQuery;
import org.camunda.bpm.engine.impl.interceptor.CommandContext;
Expand Down Expand Up @@ -224,8 +223,8 @@ public ExternalTaskQuery orderByPriority() {
}

@Override
public ExternalTaskQuery orderByCreationDate() {
return orderBy(ExternalTaskQueryProperty.CREATION_DATE);
public ExternalTaskQuery orderByCreateTime() {
return orderBy(ExternalTaskQueryProperty.CREATE_TIME);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public interface ExternalTaskQueryProperty {
QueryProperty PROCESS_DEFINITION_KEY = new QueryPropertyImpl("PROC_DEF_KEY_");
QueryProperty TENANT_ID = new QueryPropertyImpl("TENANT_ID_");
QueryProperty PRIORITY = new QueryPropertyImpl("PRIORITY_");
QueryProperty CREATION_DATE = new QueryPropertyImpl("CREATION_DATE_");
QueryProperty CREATE_TIME = new QueryPropertyImpl("CREATE_TIME_");

}

0 comments on commit 73eac0d

Please sign in to comment.