pefernan commented on code in PR #3752:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3752#discussion_r1843564249


##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.1__jBPM_user_task_timers.sql:
##########
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+create table jbpm_user_tasks_deadline (
+    id                  int,
+    task_id             varchar(50) not null,
+    notification_type   varchar(255) not null,
+    notification_value  bytea,
+    java_type           varchar(255),
+    primary key (id)
+);
+
+
+create table jbpm_user_tasks_reassignment (
+    id                  int,
+    task_id             varchar(50) not null,
+    reassignment_type   varchar(255) not null,
+    reassignment_value  bytea,
+    java_type           varchar(255),
+    primary key (id)
+);
+
+
+create table jbpm_user_tasks_deadline_timer (
+    task_id             varchar(50) not null,
+    notification_job_id varchar(255) not null,
+    notification_type   varchar(255) not null,
+    notification_value  bytea,
+    java_type           varchar(255),
+    primary key (task_id, notification_job_id)
+);
+
+
+
+create table jbpm_user_tasks_reassignment_timer (
+    task_id              varchar(50) not null,

Review Comment:
   Would you mind align the column types?



##########
addons/common/jbpm-usertask-storage-jpa/src/main/java/org/jbpm/usertask/jpa/model/TaskOutputEntity.java:
##########
@@ -29,7 +36,6 @@
 })
 @AssociationOverride(name = "taskInstance",
         joinColumns = @JoinColumn(name = "task_id", foreignKey = 
@ForeignKey(name = "jbpm_user_tasks_outputs_tid")))
-@IdClass(TaskDataEntityPK.class)

Review Comment:
   I think here we need:
   `@IdClass(TaskNamedDataEntityPK.class)`



##########
addons/common/jbpm-usertask-storage-jpa/src/main/resources/kie-flyway/db/user-tasks/postgresql/V1.0.1__jBPM_user_task_timers.sql:
##########
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+
+/*

Review Comment:
   Duplicated header



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to