Commit 07041d27 by Patryk Czarnik

insertable=false, updatable=false

parent a07ebe55
...@@ -28,12 +28,12 @@ public class OrderProduct implements Serializable { ...@@ -28,12 +28,12 @@ public class OrderProduct implements Serializable {
//bi-directional many-to-one association to Order //bi-directional many-to-one association to Order
@ManyToOne @ManyToOne
@JoinColumn(name="order_id") @JoinColumn(name="order_id", insertable=false, updatable=false)
private Order order; private Order order;
//uni-directional many-to-one association to Product //uni-directional many-to-one association to Product
@ManyToOne @ManyToOne
@JoinColumn(name="product_id") @JoinColumn(name="product_id", insertable=false, updatable=false)
private Product product; private Product product;
public OrderProduct() { public OrderProduct() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment