-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3624bbf
commit 6ba3cb0
Showing
16 changed files
with
1,424 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
caab-service/src/main/java/uk/gov/laa/ccms/caab/api/entity/CaseOutcome.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package uk.gov.laa.ccms.caab.api.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Embedded; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.SequenceGenerator; | ||
import jakarta.persistence.Table; | ||
import java.math.BigDecimal; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Represents a case outcome entity associated with the "XXCCMS_CASE_OUTCOME" table. | ||
* | ||
* <p>This entity is utilized to manage and persist case outcome data | ||
* within the CCMS system. It makes use of the "XXCCMS_GENERATED_ID_S" | ||
* sequence for generating unique identifiers.</p> | ||
*/ | ||
@Entity | ||
@Table(name = "XXCCMS_CASE_OUTCOME") | ||
@SequenceGenerator( | ||
allocationSize = 1, | ||
sequenceName = "XXCCMS_GENERATED_ID_S", | ||
name = "XXCCMS_CASE_OUTCOME_S") | ||
@Getter | ||
@Setter | ||
@RequiredArgsConstructor | ||
public class CaseOutcome { | ||
|
||
@Id | ||
@GeneratedValue(generator = "XXCCMS_CASE_OUTCOME_S") | ||
private Long id; | ||
/** | ||
* audit trail info. | ||
*/ | ||
@Embedded | ||
private AuditTrail auditTrail; | ||
|
||
@Column(name = "LSC_CASE_REFERENCE", length = 50, nullable = false) | ||
private String lscCaseReference; | ||
|
||
@Column(name = "PRE_CERTIFICATE_COSTS", precision = 10, scale = 2) | ||
private BigDecimal preCertificateCosts = new BigDecimal("0.00"); | ||
@Column(name = "LEGAL_COSTS", precision = 10, scale = 2) | ||
private BigDecimal legalCosts = new BigDecimal("0.00"); | ||
@Column(name = "DISCHARGE_REASON", length = 50) | ||
private String dischargeReason; | ||
@Column(name = "DISCHARGE_CASE_IND", length = 50) | ||
private String dischargeCaseInd; | ||
@Column(name = "CLIENT_CONTINUE_IND", length = 50) | ||
private String clientContinueInd; | ||
@Column(name = "OTHER_DETAILS", length = 1000) | ||
private String otherDetails; | ||
@Column(name = "OFFICE_CODE", length = 30) | ||
private String officeCode; | ||
@Column(name = "UNIQUE_FILE_NO", length = 30) | ||
private String uniqueFileNo; | ||
|
||
@Column(name = "PROVIDER_ID", length = 19, nullable = false) | ||
private String providerId; | ||
|
||
} |
88 changes: 88 additions & 0 deletions
88
caab-service/src/main/java/uk/gov/laa/ccms/caab/api/entity/CostEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
package uk.gov.laa.ccms.caab.api.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Embedded; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.SequenceGenerator; | ||
import jakarta.persistence.Table; | ||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Represents a cost entry entity associated with the "XXCCMS_COST_ENTRY" table. | ||
* | ||
* <p>This entity is utilized to manage and persist cost entry data | ||
* within the CCMS system. It makes use of the "XXCCMS_GENERATED_ID_S" | ||
* sequence for generating unique identifiers.</p> | ||
*/ | ||
@Entity | ||
@Table(name = "XXCCMS_COST_ENTRY") | ||
@SequenceGenerator( | ||
allocationSize = 1, | ||
sequenceName = "XXCCMS_GENERATED_ID_S", | ||
name = "XXCCMS_COST_ENTRY_S") | ||
@Setter | ||
@Getter | ||
@RequiredArgsConstructor | ||
public class CostEntry implements Serializable { | ||
|
||
@Id | ||
@GeneratedValue(generator = "XXCCMS_COST_ENTRY_S") | ||
private Long id; | ||
|
||
/** | ||
* The requested costs. | ||
*/ | ||
@Column(name = "REQUESTED_COSTS", precision = 10, scale = 2) | ||
private BigDecimal requestedCosts; | ||
|
||
/** | ||
* The cost category. | ||
*/ | ||
@Column(name = "COST_CATEGORY", length = 50) | ||
private String costCategory; | ||
|
||
/** | ||
* The id for this cost entry in EBS. | ||
*/ | ||
@Column(name = "EBS_ID", length = 15) | ||
private String ebsId; | ||
|
||
/** | ||
* Has this Cost Entry been seen in EBS. This is to prevent more that one 'Counsel' (CostEntry) | ||
* being added to the case whilst in the PUI editor. To limit only one new 'Counsel' per PUI | ||
* amendment. true (default)= its a new Entry - added during a PUI amendment false = its | ||
* been created from an existing EBS case. | ||
*/ | ||
@Column(name = "NEW_ENTRY") | ||
private Boolean newEntry = Boolean.TRUE; | ||
|
||
/** | ||
* The LSC ID for the resource these costs belongs to. | ||
*/ | ||
@Column(name = "LSC_RESOURCE_ID", length = 15) | ||
private String lscResourceId; | ||
|
||
/** | ||
* The name of the resource these costs belongs to. | ||
*/ | ||
@Column(name = "RESOURCE_NAME", length = 300) | ||
private String resourceName; | ||
|
||
/** | ||
* The parent cost structure. | ||
*/ | ||
@ManyToOne | ||
@JoinColumn(name = "FK_COST_STRUCTURE", nullable = false) | ||
private CostStructure costStructure; | ||
|
||
@Embedded | ||
private AuditTrail auditTrail; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.