Skip to content

Commit

Permalink
Change id generation
Browse files Browse the repository at this point in the history
  • Loading branch information
milesha committed Nov 21, 2024
1 parent 3233344 commit 68dfb80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
@ToString(callSuper = true)
@RequiredArgsConstructor
public class Message extends BaseGitServiceEntity {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
protected Long id;

@NonNull
@Column(name = "sent_at")
private final ZonedDateTime sentAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
@ToString(callSuper = true)
@NoArgsConstructor
public class Session extends BaseGitServiceEntity {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
protected Long id;

@OrderColumn(name = "message_order")
@OneToMany(mappedBy = "session")
Expand Down

0 comments on commit 68dfb80

Please sign in to comment.