File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
src/main/java/grep/neogul_coder/domain/buddy/entity Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,8 @@ public class BuddyEnergy {
1717 @ GeneratedValue (strategy = GenerationType .IDENTITY )
1818 private Long buddyEnergyId ;
1919
20- @ ManyToOne (fetch = FetchType .LAZY )
21- @ JoinColumn (name = "user_id" )
22- private User user ;
20+ @ Column (name = "user_id" , nullable = false )
21+ private Long userId ;
2322
2423 @ Column (nullable = false )
2524 private int level ;
Original file line number Diff line number Diff line change @@ -20,15 +20,10 @@ public class BuddyLog {
2020 @ GeneratedValue (strategy = GenerationType .IDENTITY )
2121 private Long buddyLogId ;
2222
23- @ ManyToOne (fetch = FetchType .LAZY )
24- @ JoinColumn (name = "user_id" )
25- private User user ;
26-
27- @ Column (nullable = false )
28- private int level ;
29-
3023 @ Enumerated (EnumType .STRING )
31- @ Column (nullable = false , length = 50 )
3224 private BuddyEnergyReason reason ;
3325
26+ @ ManyToOne (fetch = FetchType .LAZY )
27+ private BuddyEnergy buddyEnergy ;
28+
3429}
You can’t perform that action at this time.
0 commit comments