Skip to content

Commit

Permalink
[MODEL] user in role
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavlo Stefiniv committed Nov 20, 2023
1 parent 108f5e1 commit 2580cef
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ public class Rental {
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "car_id", nullable = false)
private Car car;

@ManyToOne
@JoinColumn(name = "user_id")
private User user;
}

0 comments on commit 2580cef

Please sign in to comment.