1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
public class TfcList implements java.io.Serializable {
...
private TfcListId id;
private ProductList productList;
private Tfc tfc;
...
@EmbeddedId
@AttributeOverrides( {
@AttributeOverride(name = "productListId", column = @Column(name = "PRODUCT_LIST_ID", unique = false, nullable = false, insertable = true, updatable = true, precision = 8, scale = 0)),
@AttributeOverride(name = "tfcId", column = @Column(name = "TFC_ID", unique = false, nullable = false, insertable = true, updatable = true, precision = 8, scale = 0)) })
public TfcListId getId() {
return this.id;
}
public void setId(TfcListId id) {
this.id = id;
}
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "PRODUCT_LIST_ID", unique = false, nullable = false, insertable = false, updatable = false)
public ProductList getProductList() {
return this.productList;
}
public void setProductList(ProductList productList) {
this.productList = productList;
}
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "TFC_ID", unique = false, nullable = false, insertable = false, updatable = false)
public Tfc getTfc() {
return this.tfc;
}
public void setTfc(Tfc tfc) {
this.tfc = tfc;
}
... |
Partager