This repository has been archived on 2020-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
e-commerce/prototype/src/main/java/org/hso/ecommerce/entities/Article.java

94 lines
1.9 KiB
Java

package org.hso.ecommerce.entities;
import javax.persistence.*;
@Entity
@Table(name = "article")
public class Article {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "id_Sequence")
@SequenceGenerator(name = "id_Sequence", sequenceName = "ID_SEQ")
public Long id;
public String title;
public String category;
public String description;
public int refArticle;
public int sellingPrice;
public int maxPurchasePrice;
public int maxStock;
public int currentStock;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public int getRefArticle() {
return refArticle;
}
public void setRefArticle(int refArticle) {
this.refArticle = refArticle;
}
public int getSellingPrice() {
return sellingPrice;
}
public void setSellingPrice(int sellingPrice) {
this.sellingPrice = sellingPrice;
}
public int getMaxPurchasePrice() {
return maxPurchasePrice;
}
public void setMaxPurchasePrice(int maxPurchasePrice) {
this.maxPurchasePrice = maxPurchasePrice;
}
public int getMaxStock() {
return maxStock;
}
public void setMaxStock(int maxStock) {
this.maxStock = maxStock;
}
public int getCurrentStock() {
return currentStock;
}
public void setCurrentStock(int currentStock) {
this.currentStock = currentStock;
}
}