diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ClientAcronymEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ClientAcronymEntity.java index d943fd81..bec326c8 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ClientAcronymEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ClientAcronymEntity.java @@ -7,21 +7,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.ToString; import lombok.With; -/** This class represents a Client Acronym in the database. */ +/** + * This class represents a Client Acronym in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "CLIENT_ACRONYM") +@Table(schema = "THE", name = "CLIENT_ACRONYM") public class ClientAcronymEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/CutBlockOpenAdminEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/CutBlockOpenAdminEntity.java index e7bb2724..ce68fa52 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/CutBlockOpenAdminEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/CutBlockOpenAdminEntity.java @@ -9,18 +9,18 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; import lombok.With; -/** This class represents a CUT_BLOCK_OPEN_ADMIN entity in the database. */ +/** + * This class represents a CUT_BLOCK_OPEN_ADMIN entity in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor -@Table(name = "CUT_BLOCK_OPEN_ADMIN") +@Table(schema = "THE", name = "CUT_BLOCK_OPEN_ADMIN") @Entity public class CutBlockOpenAdminEntity { diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpenCategoryCodeEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpenCategoryCodeEntity.java index 7c77ab0a..5e165d51 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpenCategoryCodeEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpenCategoryCodeEntity.java @@ -8,19 +8,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; import lombok.With; -/** This class represents an Opening Category in the database. */ +/** + * This class represents an Opening Category in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "OPEN_CATEGORY_CODE") +@Table(schema = "THE", name = "OPEN_CATEGORY_CODE") public class OpenCategoryCodeEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningAttachmentEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningAttachmentEntity.java index b51cc95a..a1cc1825 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningAttachmentEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningAttachmentEntity.java @@ -7,21 +7,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.ToString; import lombok.With; -/** This class represents an Opening Attachment in the database. */ +/** + * This class represents an Opening Attachment in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "OPENING_ATTACHMENT") +@Table(schema = "THE", name = "OPENING_ATTACHMENT") public class OpeningAttachmentEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningEntity.java index 2f024757..9abcfca0 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OpeningEntity.java @@ -8,19 +8,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; import lombok.With; -/** This class represents an Opening in the database. */ +/** + * This class represents an Opening in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "OPENING") +@Table(schema = "THE", name = "OPENING") public class OpeningEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OrgUnitEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OrgUnitEntity.java index ca6b1101..424f958a 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OrgUnitEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/OrgUnitEntity.java @@ -8,21 +8,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.ToString; import lombok.With; -/** This class represents an Organization Unity in the database. */ +/** + * This class represents an Organization Unity in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "ORG_UNIT") +@Table(schema = "THE", name = "ORG_UNIT") public class OrgUnitEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ResultsElectronicSubmissionEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ResultsElectronicSubmissionEntity.java index f2ba24f9..9c5780b0 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ResultsElectronicSubmissionEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/oracle/entity/ResultsElectronicSubmissionEntity.java @@ -7,23 +7,21 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.ToString; import lombok.With; -/** This class represents an Electronic Submission for the Openings in the database. */ +/** + * This class represents an Electronic Submission for the Openings in the database. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "RESULTS_ELECTRONIC_SUBMISSION") +@Table(schema = "THE", name = "RESULTS_ELECTRONIC_SUBMISSION") public class ResultsElectronicSubmissionEntity { - + @Id @Column(name = "RESULTS_SUBMISSION_ID") private Long resultsSubmissionId; diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsActivityEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsActivityEntity.java index a3087a38..257181d6 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsActivityEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsActivityEntity.java @@ -9,12 +9,12 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; import lombok.With; -/** This class represents a record in the database for the openings_activity table. */ +/** + * This class represents a record in the database for the openings_activity table. + */ @Data @Builder @With @@ -22,7 +22,7 @@ @AllArgsConstructor @IdClass(OpeningsActivityEntityId.class) @Entity -@Table(name = "openings_activity") +@Table(schema = "silva", name = "openings_activity") public class OpeningsActivityEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsLastYearEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsLastYearEntity.java index 5a4b0c0d..95341e97 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsLastYearEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OpeningsLastYearEntity.java @@ -8,19 +8,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; import lombok.With; -/** This class represents a record in the database for the openings_last_year table. */ +/** + * This class represents a record in the database for the openings_last_year table. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "openings_last_year") +@Table(schema = "silva", name = "openings_last_year") public class OpeningsLastYearEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OracleExtractionLogsEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OracleExtractionLogsEntity.java index 5f57252b..1e4940b7 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OracleExtractionLogsEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/OracleExtractionLogsEntity.java @@ -11,20 +11,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.ToString; import lombok.With; -/** This class represents a log message in the database, for the oracle extraction flow. */ +/** + * This class represents a log message in the database, for the oracle extraction flow. + */ @Data @Builder @NoArgsConstructor @AllArgsConstructor @With @Entity -@Table(name = "oracle_extraction_logs") +@Table(schema = "silva", name = "oracle_extraction_logs") public class OracleExtractionLogsEntity { @Id diff --git a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/UserOpeningEntity.java b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/UserOpeningEntity.java index 65980633..2ba819b0 100644 --- a/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/UserOpeningEntity.java +++ b/backend/src/main/java/ca/bc/gov/restapi/results/postgres/entity/UserOpeningEntity.java @@ -8,21 +8,19 @@ import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.Getter; import lombok.NoArgsConstructor; -import lombok.Setter; -import lombok.ToString; import lombok.With; -/** This class represents an Opening saved as favourite to the user. */ +/** + * This class represents an Opening saved as favourite to the user. + */ @Data @Builder @With @NoArgsConstructor @AllArgsConstructor @Entity -@Table(name = "user_openings") +@Table(schema = "silva", name = "user_openings") @IdClass(UserOpeningEntityId.class) public class UserOpeningEntity {