初始版本
This commit is contained in:
56
src/main/java/com/vverp/entity/ProgressStock.java
Normal file
56
src/main/java/com/vverp/entity/ProgressStock.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package com.vverp.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.vverp.annotation.Module;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**项目库存*/
|
||||
@Entity
|
||||
@Table(name = "t_progress_stock")
|
||||
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "seq_progress_stock")
|
||||
@Module(generate = false)
|
||||
public class ProgressStock extends BaseEntity<Long>{
|
||||
|
||||
private Product product;
|
||||
|
||||
private BigDecimal stockCount;
|
||||
|
||||
private Long progressId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JsonIgnore
|
||||
public Product getProduct() {
|
||||
return product;
|
||||
}
|
||||
|
||||
public void setProduct(Product product) {
|
||||
this.product = product;
|
||||
}
|
||||
|
||||
public BigDecimal getStockCount() {
|
||||
return stockCount;
|
||||
}
|
||||
|
||||
public void setStockCount(BigDecimal stockCount) {
|
||||
this.stockCount = stockCount;
|
||||
}
|
||||
|
||||
public Long getProgressId() {
|
||||
return progressId;
|
||||
}
|
||||
|
||||
public void setProgressId(Long progressId) {
|
||||
this.progressId = progressId;
|
||||
}
|
||||
|
||||
private String productType;
|
||||
@Transient
|
||||
public String getProductType() {
|
||||
return productType;
|
||||
}
|
||||
public void setProductType(String productType) {
|
||||
this.productType = productType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user