-
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
b2fe3d3
commit c31594e
Showing
12 changed files
with
514 additions
and
206 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
53 changes: 53 additions & 0 deletions
53
caab-service/src/main/java/uk/gov/laa/ccms/api/entity/Opponent.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,53 @@ | ||
package uk.gov.laa.ccms.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 lombok.Getter; | ||
import lombok.Setter; | ||
|
||
|
||
/** | ||
* Represents an opponent entity associated with the "XXCCMS_OPPONENT" table. | ||
* | ||
* <p>This entity is utilized to manage and persist opponent data | ||
* within the CCMS system. It makes use of the "XXCCMS_GENERATED_ID_S" | ||
* sequence for generating unique identifiers.</p> | ||
*/ | ||
@Entity | ||
@Table(name = "XXCCMS_OPPONENT") | ||
@SequenceGenerator( | ||
allocationSize = 1, | ||
sequenceName = "XXCCMS_GENERATED_ID_S", | ||
name = "XXCCMS_OPPONENT_S") | ||
@Getter | ||
@Setter | ||
public class Opponent implements Serializable { | ||
|
||
@Id | ||
@GeneratedValue(generator = "XXCCMS_OPPONENT_S") | ||
private Long id; | ||
|
||
@Embedded | ||
private AuditTrail auditTrail; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "FK_APPLICATION", nullable = false) | ||
private Application application; | ||
|
||
@Column(name = "RELATIONSHIP_TO_CASE", length = 50) | ||
private String relationshipToCase; | ||
|
||
@Column(name = "TYPE", length = 50) | ||
private String type; | ||
|
||
//TO BE CONTINUED IN FURTHER STORY | ||
|
||
} |
47 changes: 47 additions & 0 deletions
47
caab-service/src/main/java/uk/gov/laa/ccms/api/entity/PriorAuthority.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,47 @@ | ||
package uk.gov.laa.ccms.api.entity; | ||
|
||
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 lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Represents a prior authority entity associated with the "XXCCMS_PRIOR_AUTHORITY" table. | ||
* | ||
* <p>This entity is utilized to manage and persist prior authority data | ||
* within the CCMS system. It makes use of the "XXCCMS_GENERATED_ID_S" | ||
* sequence for generating unique identifiers.</p> | ||
*/ | ||
@Entity | ||
@Table(name = "XXCCMS_PRIOR_AUTHORITY") | ||
@SequenceGenerator( | ||
allocationSize = 1, | ||
sequenceName = "XXCCMS_GENERATED_ID_S", | ||
name = "XXCCMS_PRIOR_AUTHORITY_S") | ||
@Getter | ||
@Setter | ||
public class PriorAuthority implements Serializable { | ||
|
||
@Id | ||
@GeneratedValue(generator = "XXCCMS_PRIOR_AUTHORITY_S") | ||
private Long id; | ||
|
||
/** | ||
* audit trail info. | ||
*/ | ||
@Embedded | ||
private AuditTrail auditTrail; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "FK_APPLICATION", nullable = false) | ||
private Application application; | ||
|
||
//TO BE CONTINUED IN FURTHER STORY | ||
} |
49 changes: 49 additions & 0 deletions
49
caab-service/src/main/java/uk/gov/laa/ccms/api/entity/Proceeding.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,49 @@ | ||
package uk.gov.laa.ccms.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 lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** | ||
* Represents a proceeding entity associated with the "XXCCMS_PROCEEDING" table. | ||
* | ||
* <p>This entity is utilized to manage and persist proceeding data | ||
* within the CCMS system. It makes use of the "XXCCMS_GENERATED_ID_S" | ||
* sequence for generating unique identifiers.</p> | ||
*/ | ||
@Entity | ||
@Table(name = "XXCCMS_PROCEEDING") | ||
@SequenceGenerator( | ||
allocationSize = 1, | ||
sequenceName = "XXCCMS_GENERATED_ID_S", | ||
name = "XXCCMS_PROCEEDING_S") | ||
@Getter | ||
@Setter | ||
public class Proceeding implements Serializable { | ||
|
||
@Id | ||
@GeneratedValue(generator = "XXCCMS_PROCEEDING_S") | ||
private Long id; | ||
|
||
@Column(name = "STAGE", length = 10) | ||
private String stage; | ||
|
||
@Embedded | ||
private AuditTrail auditTrail; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "FK_APPLICATION", nullable = false) | ||
private Application application; | ||
|
||
//TO BE CONTINUED IN FURTHER STORY | ||
|
||
} |
Oops, something went wrong.