Skip to content

Commit

Permalink
PI-2138 Add sequence to AdditionalIdentifier entity (#3692)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Apr 29, 2024
1 parent e245b57 commit c140739
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import java.time.ZonedDateTime
@Entity
@EntityListeners(AuditingEntityListener::class)
@SQLRestriction("soft_deleted = 0")
@SequenceGenerator(
name = "additional_identifier_id_seq",
sequenceName = "additional_identifier_id_seq",
allocationSize = 1
)
class AdditionalIdentifier(

@Column(columnDefinition = "varchar2(30)")
Expand All @@ -33,6 +38,7 @@ class AdditionalIdentifier(

@Id
@Column(name = "additional_identifier_id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "additional_identifier_id_seq")
val id: Long = 0,

@Version
Expand Down

0 comments on commit c140739

Please sign in to comment.