diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchEntity.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchEntity.java index 42dfc4c8..bd595a90 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchEntity.java @@ -204,7 +204,7 @@ public class PenRequestBatchEntity { * The Create user. */ @Basic - @Column(name = "CREATE_USER", updatable = false, nullable = false, length = 32) + @Column(name = "CREATE_USER", updatable = false, nullable = false, length = 100) String createUser; @@ -219,7 +219,7 @@ public class PenRequestBatchEntity { * The Update user. */ @Basic - @Column(name = "UPDATE_USER", nullable = false, length = 32) + @Column(name = "UPDATE_USER", nullable = false, length = 100) String updateUser; /** diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchHistoryEntity.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchHistoryEntity.java index 67c1dbcd..15170e0e 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchHistoryEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchHistoryEntity.java @@ -218,7 +218,7 @@ public class PenRequestBatchHistoryEntity { * The Create user. */ @Basic - @Column(name = "CREATE_USER",updatable = false, nullable = false, length = 32) + @Column(name = "CREATE_USER",updatable = false, nullable = false, length = 100) String createUser; @@ -233,7 +233,7 @@ public class PenRequestBatchHistoryEntity { * The Update user. */ @Basic - @Column(name = "UPDATE_USER", nullable = false, length = 32) + @Column(name = "UPDATE_USER", nullable = false, length = 100) String updateUser; /** diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchStudentEntity.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchStudentEntity.java index c4879b2c..41f7e1c3 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchStudentEntity.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/PenRequestBatchStudentEntity.java @@ -164,7 +164,7 @@ public class PenRequestBatchStudentEntity { * The Create user. */ @Basic - @Column(name = "CREATE_USER", updatable = false, nullable = false, length = 32) + @Column(name = "CREATE_USER", updatable = false, nullable = false, length = 100) String createUser; @@ -182,7 +182,7 @@ public class PenRequestBatchStudentEntity { * The Update user. */ @Basic - @Column(name = "UPDATE_USER", nullable = false, length = 32) + @Column(name = "UPDATE_USER", nullable = false, length = 100) String updateUser; /** diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/Saga.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/Saga.java index d101654c..9a59d8d4 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/Saga.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/Saga.java @@ -82,7 +82,7 @@ public class Saga { */ @NotNull(message = "create user cannot be null") @Column(name = "CREATE_USER", updatable = false) - @Size(max = 32) + @Size(max = 100) String createUser; /** @@ -90,7 +90,7 @@ public class Saga { */ @NotNull(message = "update user cannot be null") @Column(name = "UPDATE_USER") - @Size(max = 32) + @Size(max = 100) String updateUser; /** diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/SagaEvent.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/SagaEvent.java index ab2bc3a8..e2d97033 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/SagaEvent.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/model/v1/SagaEvent.java @@ -77,7 +77,7 @@ public class SagaEvent { */ @NotNull(message = "create user cannot be null") @Column(name = "CREATE_USER", updatable = false) - @Size(max = 32) + @Size(max = 100) String createUser; /** @@ -85,7 +85,7 @@ public class SagaEvent { */ @NotNull(message = "update user cannot be null") @Column(name = "UPDATE_USER") - @Size(max = 32) + @Size(max = 100) String updateUser; /** diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/School.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/School.java index e00e4db5..edaa9691 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/School.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/School.java @@ -77,10 +77,10 @@ public class School implements Serializable { private String closedDate; - @Size(max = 32) + @Size(max = 100) public String createUser; - @Size(max = 32) + @Size(max = 100) public String updateUser; @Null(message = "createDate should be null.") diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/SchoolContact.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/SchoolContact.java index 28de843c..76625d85 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/SchoolContact.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/SchoolContact.java @@ -56,10 +56,10 @@ public class SchoolContact implements Serializable { private String expiryDate; - @Size(max = 32) + @Size(max = 100) public String createUser; - @Size(max = 32) + @Size(max = 100) public String updateUser; @Null(message = "createDate should be null.") diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/Student.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/Student.java index cfa021c5..6337736a 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/Student.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/Student.java @@ -142,12 +142,12 @@ public class Student implements Serializable { /** * The Create user. */ - @Size(max = 32) + @Size(max = 100) String createUser; /** * The Update user. */ - @Size(max = 32) + @Size(max = 100) String updateUser; String historyActivityCode; diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/v1/BaseRequest.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/v1/BaseRequest.java index 0f7fada9..8af9c835 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/v1/BaseRequest.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/struct/v1/BaseRequest.java @@ -13,9 +13,9 @@ @NoArgsConstructor @AllArgsConstructor public abstract class BaseRequest { - @Size(max = 32) + @Size(max = 100) protected String createUser; - @Size(max = 32) + @Size(max = 100) protected String updateUser; @Null(message = "createDate should be null.") protected String createDate; diff --git a/api/src/main/resources/db/migration/V1.0.36__PEN_REQUEST_BATCH_API.sql b/api/src/main/resources/db/migration/V1.0.36__PEN_REQUEST_BATCH_API.sql new file mode 100644 index 00000000..97d6cfe4 --- /dev/null +++ b/api/src/main/resources/db/migration/V1.0.36__PEN_REQUEST_BATCH_API.sql @@ -0,0 +1,29 @@ +ALTER TABLE PEN_REQUEST_BATCH +MODIFY ( + CREATE_USER VARCHAR2(100), + UPDATE_USER VARCHAR2(100) + ); + +ALTER TABLE PEN_REQUEST_BATCH_HISTORY +MODIFY ( + CREATE_USER VARCHAR2(100), + UPDATE_USER VARCHAR2(100) + ); + +ALTER TABLE PEN_REQUEST_BATCH_SAGA +MODIFY ( + CREATE_USER VARCHAR2(100), + UPDATE_USER VARCHAR2(100) + ); + +ALTER TABLE PEN_REQUEST_BATCH_SAGA_EVENT_STATES +MODIFY ( + CREATE_USER VARCHAR2(100), + UPDATE_USER VARCHAR2(100) + ); + +ALTER TABLE PEN_REQUEST_BATCH_STUDENT +MODIFY ( + CREATE_USER VARCHAR2(100), + UPDATE_USER VARCHAR2(100) + );