Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author RMehdi, GLeao Class that represents a table from the database.
- */
- @Entity
- @Table(name = "v_logp_nav_01")
- public class VStockCorrection implements Serializable {
- /**
- * Serial ID that manage the beans.
- */
- private static final long serialVersionUID = 1L;
- /**
- * ATRIBUTES
- */
- @Column(name = "WAREHOUSE")
- private String warehouse;
- @Column(name = "OWNER")
- private String owner;
- @Column(name = "status")
- private String status;
- @Column(name = "ARTICLE")
- private String article;
- @Column(name = "QTY")
- private Long qty;
- @Column(name = "BATCHES")
- private String batches;
- @Column(name = "RECEPTION_DATE")
- private Date dtReception;
- @Column(name = "EXPIRATION_DATE")
- private Date dtExpiration;
- @Column(name = "DELIVERY_NUMBER")
- private String deliveryNum;
- @Column(name = "BILL_NUMBER")
- private String billNum;
- /**
- * Constructor without arguments
- */
- public VStockCorrection() {
- }
- /**
- * Constructor with arguments when a object from this class is generated.
- *
- * @param warehouse Represents a warehouse code in the system
- * @param owner Represents a owner code in the system
- * @param status Represent the status of the process in the system.
- * @param article Represents an article code in the system.
- * @param qty Represents the quantity of products in the stock.
- * @param batches Represents the number of batches in the stock.
- * @param dtReception Reception date of products by the client.
- * @param dtExpiration Expiration date of the products in the stock.
- * @param deliveryNum Represents a delivery code on the system.
- * @param billNum Represents a bill code on the system.
- */
- public VStockCorrection(String warehouse, String owner, String status, String article, Long qty, String batches,
- Date dtReception, Date dtExpiration, String deliveryNum, String billNum) {
- this.warehouse = warehouse;
- this.owner = owner;
- this.status = status;
- this.article = article;
- this.qty = qty;
- this.batches = batches;
- this.dtReception = dtReception;
- this.dtExpiration = dtExpiration;
- this.deliveryNum = deliveryNum;
- this.billNum = billNum;
- }
- /**
- * GETTER'S AND SETTER'S
- */
- /**
- * @return current warehouse id.
- */
- public String getWarehouse() {
- return warehouse;
- }
- /**
- * @param warehouse Must composed by 0 to 9 numeric values. Samples: 100
- */
- public void setWarehouse(String warehouse) {
- this.warehouse = warehouse;
- }
- /**
- * @return current owner id.
- */
- public String getOwner() {
- return owner;
- }
- /**
- * @param owner Must be composed by characters A to Z. Samples: MIDSID
- */
- public void setOwner(String owner) {
- this.owner = owner;
- }
- /**
- * @return current status value.
- */
- public String getStatus() {
- return status;
- }
- /**
- * @param status Must composed by 0 to 9 numeric values. Samples: 90, 100, 45
- */
- public void setStatus(String status) {
- this.status = status;
- }
- /**
- * @return current article id value
- */
- public String getArticle() {
- return article;
- }
- /**
- * @param article Must composed by 0 to 9 numeric values. Samples: 01, 024, 010001
- */
- public void setArticle(String article) {
- this.article = article;
- }
- /**
- * @return current quantity of products in the systems.
- */
- public Long getQty() {
- return qty;
- }
- /**
- * @param qty Must composed by 0 to 9 numeric values. Samples: 5, 2535, 150.5
- */
- public void setQty(Long qty) {
- this.qty = qty;
- }
- /**
- * @return current number of batches in the system.
- */
- public String getBatches() {
- return batches;
- }
- /**
- * @param batches Must composed by 0 to 9 numeric values. Samples: 01, 140620190920, 063
- */
- public void setBatches(String batches) {
- this.batches = batches;
- }
- /**
- * @return current reception date from the client.
- */
- public Date getDtReception() {
- return dtReception;
- }
- /**
- * @param dtReception Must be a valid Date value and can't be in a future only past and current dates. Samples: 22/01/2018, 2019-01-22
- */
- public void setDtReception(Date dtReception) {
- this.dtReception = dtReception;
- }
- /**
- * @return current expiration date from the stored product.
- */
- public Date getDtExpired() {
- return dtExpiration;
- }
- /**
- * @param dtExpiration Must be a valid Date value and can be in future date values. Samples: 22/01/2019, 2021-01-22
- */
- public void setDtExpired(Date dtExpiration) {
- this.dtExpiration = dtExpiration;
- }
- /**
- * @return current delivery number from the order in the system.
- */
- public String getDeliveryNum() {
- return deliveryNum;
- }
- /**
- * @param deliveryNum Must composed by 0 to 9 numeric values. Samples:
- */
- public void setDeliveryNum(String deliveryNum) {
- this.deliveryNum = deliveryNum;
- }
- /**
- * @return current bill number from the order in the system.
- */
- public String getBillNum() {
- return billNum;
- }
- /**
- * @param billNum Must composed by 0 to 9 numeric values. Samples:
- */
- public void setBillNum(String billNum) {
- this.billNum = billNum;
- }
- /**
- * A String return method that generate a inside log for the developers or other internal checks.
- */
- @Override
- public String toString() {
- return String.format(
- "VUnplannedInboundStockConfirmation [warehouse=%s, owner=%s, status=%s, article=%s, qty=%s, batches=%s, dtEeception=%s, dtExpired=%s, deliveryNum=%s, billNum=%s]",
- warehouse, owner, status, article, qty, batches, dtReception, dtExpiration, deliveryNum, billNum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement