* Item amount
*/
@Basic (optional = false)
- @Column (name = "amount", length = 20, nullable = false)
- private Long amount;
+ @Column (name = "order_amount", length = 20, nullable = false)
+ private Long orderedAmount;
/**
* Entry id (from database backend)
*/
@Id
@GeneratedValue (strategy = GenerationType.IDENTITY)
- @Column (name = "id", nullable = false, length = 20)
- private Long id;
+ @Column (name = "order_id", nullable = false, length = 20)
+ private Long itemId;
/**
* Item type
*/
@Basic (optional = false)
- @Column (name = "item_type", length = 20)
+ @Column (name = "order_item_type", length = 20)
private String itemType;
/**
* Product instance
*/
- @JoinColumn (name = "product_id", updatable = false)
+ @JoinColumn (name = "order_product_id", updatable = false)
@OneToOne (targetEntity = GenericProduct.class, cascade = CascadeType.MERGE)
private Product product;
@Override
public Long getItemId () {
- return this.id;
+ return this.itemId;
}
@Override
- public void setItemId (final Long id) {
- this.id = id;
+ public void setItemId (final Long itemId) {
+ this.itemId = itemId;
}
@Override
@Override
public Long getOrderedAmount () {
- return this.amount;
+ return this.orderedAmount;
}
@Override
- public void setOrderedAmount (final Long amount) {
- this.amount = amount;
+ public void setOrderedAmount (final Long orderedAmount) {
+ this.orderedAmount = orderedAmount;
}
}