com.infusers.core.order.OrderItem Maven / Gradle / Ivy
package com.infusers.core.order;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.SequenceGenerator;
@Entity
public class OrderItem {
@Id
@GeneratedValue (strategy = GenerationType.SEQUENCE, generator = "ROMCOI")
@SequenceGenerator (name = "ROMCOI", sequenceName = "COI_SEQ", allocationSize = 1)
private Long orderItemId;
private Long productId;
private Double qty;
private String fromLocation;
private String toLocation;
private String uom;
private String uomType;
public OrderItem() {
super();
}
public OrderItem(Long prodId, Double qty, String fromLoc, String toLoc, String uom, String uomType) {
super();
this.productId = prodId;
this.qty = qty;
this.fromLocation = fromLoc;
this.toLocation = toLoc;
this.uom = uom;
this.uomType = uomType;
}
public Long getOrderItemId() {
return orderItemId;
}
public void setOrderItemId(Long orderItemId) {
this.orderItemId = orderItemId;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public Double getQty() {
return qty;
}
public void setQty(Double qty) {
this.qty = qty;
}
public String getFromLocation() {
return fromLocation;
}
public void setFromLocation(String fromLocation) {
this.fromLocation = fromLocation;
}
public String getToLocation() {
return toLocation;
}
public void setToLocation(String toLocation) {
this.toLocation = toLocation;
}
public String getUom() {
return uom;
}
public void setUom(String uom) {
this.uom = uom;
}
public String getUomType() {
return uomType;
}
public void setUomType(String uomType) {
this.uomType = uomType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy