|
|
@ -62,7 +62,7 @@ public class Stocks { |
|
|
|
@ManyToOne(fetch = FetchType.LAZY) |
|
|
|
@ManyToOne(fetch = FetchType.LAZY) |
|
|
|
@JoinColumn( |
|
|
|
@JoinColumn( |
|
|
|
name = "user_id", |
|
|
|
name = "user_id", |
|
|
|
referencedColumnName = "user_id", |
|
|
|
referencedColumnName = "id", |
|
|
|
nullable = false |
|
|
|
nullable = false |
|
|
|
) |
|
|
|
) |
|
|
|
private User user_id; |
|
|
|
private User user_id; |
|
|
@ -94,7 +94,7 @@ public class Stocks { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 賞味期限 |
|
|
|
* 賞味期限 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Column(nullable = false) |
|
|
|
@Column(nullable = true) |
|
|
|
private LocalDate exp_date; |
|
|
|
private LocalDate exp_date; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |