Skip to content

Commit

Permalink
Add offender id to Licence Condition for VPD SP (#3239)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj authored Feb 13, 2024
1 parent f82ecb9 commit 72ae6d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ import java.time.ZonedDateTime
@SequenceGenerator(name = "lic_condition_id_seq", sequenceName = "lic_condition_id_seq", allocationSize = 1)
class LicenceCondition(

@Column(name = "offender_id")
val personId: Long,

@Column(name = "disposal_id")
val disposalId: Long,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class LicenceConditionService(
): LicenceCondition {
val lc = licenceConditionRepository.save(
LicenceCondition(
disposal.event.person.id,
disposal.id,
startDate,
category,
Expand Down

0 comments on commit 72ae6d2

Please sign in to comment.