|
|
|
@ -40,7 +40,7 @@ public class ToBuys { |
|
|
|
|
private int tobuy_id ; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 材料の一意識別子 FK |
|
|
|
|
* 商品テーブル参照用の外部キー |
|
|
|
|
*/ |
|
|
|
|
@NotBlank |
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY) |
|
|
|
@ -49,7 +49,7 @@ public class ToBuys { |
|
|
|
|
referencedColumnName = "stuff_id", |
|
|
|
|
nullable = false |
|
|
|
|
) |
|
|
|
|
private Stuffs stuffs; |
|
|
|
|
private Stuffs stuffs_id; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* ユーザーテーブル参照用の外部キー |
|
|
|
@ -58,7 +58,7 @@ public class ToBuys { |
|
|
|
|
@ManyToOne(fetch = FetchType.LAZY) |
|
|
|
|
@JoinColumn( |
|
|
|
|
name = "user_id", |
|
|
|
|
referencedColumnName = "id", |
|
|
|
|
referencedColumnName = "user_id", |
|
|
|
|
nullable = false |
|
|
|
|
) |
|
|
|
|
private User user_id; |
|
|
|
@ -74,7 +74,7 @@ public class ToBuys { |
|
|
|
|
* 購入するお店 |
|
|
|
|
*/ |
|
|
|
|
@NotBlank |
|
|
|
|
@Column(nullable = false) |
|
|
|
|
@Column(nullable = true) |
|
|
|
|
private String store; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|