diff --git a/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Attachment.java b/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Attachment.java index d032eca9eaf..27f2fecbe01 100644 --- a/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Attachment.java +++ b/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Attachment.java @@ -20,9 +20,7 @@ import java.net.URI; -import org.kie.kogito.process.workitem.TaskMetaEntity; - -public class Attachment extends TaskMetaEntity { +public class Attachment extends UserTaskEntity { private static final long serialVersionUID = 1L; private String name; diff --git a/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Comment.java b/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Comment.java index fe2a3fdf457..271cc3c75e6 100644 --- a/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Comment.java +++ b/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/Comment.java @@ -18,9 +18,7 @@ */ package org.kie.kogito.usertask.model; -import org.kie.kogito.process.workitem.TaskMetaEntity; - -public class Comment extends TaskMetaEntity { +public class Comment extends UserTaskEntity { private static final long serialVersionUID = -9106249675352498780L; diff --git a/api/kogito-api/src/main/java/org/kie/kogito/process/workitem/TaskMetaEntity.java b/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/UserTaskEntity.java similarity index 90% rename from api/kogito-api/src/main/java/org/kie/kogito/process/workitem/TaskMetaEntity.java rename to api/kogito-api/src/main/java/org/kie/kogito/usertask/model/UserTaskEntity.java index 49150a0af6a..2b509789075 100644 --- a/api/kogito-api/src/main/java/org/kie/kogito/process/workitem/TaskMetaEntity.java +++ b/api/kogito-api/src/main/java/org/kie/kogito/usertask/model/UserTaskEntity.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.kie.kogito.process.workitem; +package org.kie.kogito.usertask.model; import java.io.Serializable; import java.util.Date; -public class TaskMetaEntity implements Serializable, Cloneable { +public class UserTaskEntity implements Serializable, Cloneable { private static final long serialVersionUID = 1L; private K id; @@ -29,10 +29,10 @@ public class TaskMetaEntity impl protected Date updatedAt; protected String updatedBy; - public TaskMetaEntity() { + public UserTaskEntity() { } - public TaskMetaEntity(K id, String user) { + public UserTaskEntity(K id, String user) { this.id = id; this.updatedBy = user; } @@ -81,7 +81,7 @@ public boolean equals(Object obj) { return false; if (getClass() != obj.getClass()) return false; - return id.equals(((TaskMetaEntity) obj).id); + return id.equals(((UserTaskEntity) obj).id); } @Override