added TtbGrtg, TtbGrtgEl, and TtbQtaMinOrd entity classes
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,97 @@
|
|||||||
|
package it.integry.ems_model.entity;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import it.integry.ems_model.base.EntityBase;
|
||||||
|
import it.integry.ems_model.annotation.Master;
|
||||||
|
import org.kie.api.definition.type.PropertyReactive;
|
||||||
|
import it.integry.ems_model.annotation.Table;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import it.integry.ems_model.annotation.PK;
|
||||||
|
import it.integry.ems_model.annotation.SqlField;
|
||||||
|
import it.integry.ems_model.annotation.EntityChild;
|
||||||
|
|
||||||
|
@Master()
|
||||||
|
@PropertyReactive()
|
||||||
|
@Table(value = TtbGrtg.ENTITY)
|
||||||
|
@JsonTypeName(value = TtbGrtg.ENTITY)
|
||||||
|
public class TtbGrtg extends EntityBase {
|
||||||
|
|
||||||
|
public final static String ENTITY = "Ttb_Grtg";
|
||||||
|
|
||||||
|
private final static Long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private final static Logger logger = LogManager.getLogger();
|
||||||
|
|
||||||
|
public TtbGrtg() {
|
||||||
|
super(logger);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PK()
|
||||||
|
@SqlField(value = "cod_grtg", maxLength = 5, nullable = false)
|
||||||
|
private String codGrtg;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_tagl_min", maxLength = 15, nullable = false)
|
||||||
|
private String codTaglMin;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_tagl_max", maxLength = 15, nullable = false)
|
||||||
|
private String codTaglMax;
|
||||||
|
|
||||||
|
@SqlField(value = "note", maxLength = 40, nullable = true)
|
||||||
|
private String note;
|
||||||
|
|
||||||
|
@EntityChild()
|
||||||
|
private List<TtbGrtgEl> ttbGrtgEl = new ArrayList<>();
|
||||||
|
|
||||||
|
public String getCodGrtg() {
|
||||||
|
return codGrtg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtg setCodGrtg(String codGrtg) {
|
||||||
|
this.codGrtg = codGrtg;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodTaglMin() {
|
||||||
|
return codTaglMin;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtg setCodTaglMin(String codTaglMin) {
|
||||||
|
this.codTaglMin = codTaglMin;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodTaglMax() {
|
||||||
|
return codTaglMax;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtg setCodTaglMax(String codTaglMax) {
|
||||||
|
this.codTaglMax = codTaglMax;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNote() {
|
||||||
|
return note;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtg setNote(String note) {
|
||||||
|
this.note = note;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<TtbGrtgEl> getTtbGrtgEl() {
|
||||||
|
return ttbGrtgEl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtg setTtbGrtgEl(List<TtbGrtgEl> ttbGrtgEl) {
|
||||||
|
this.ttbGrtgEl = ttbGrtgEl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void deleteChilds() throws Exception {
|
||||||
|
TtbGrtgEl ttbGrtgEl = new TtbGrtgEl();
|
||||||
|
ttbGrtgEl.deleteAllEntities(connection, this);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,153 @@
|
|||||||
|
package it.integry.ems_model.entity;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import it.integry.ems_model.base.EntityBase;
|
||||||
|
import org.kie.api.definition.type.PropertyReactive;
|
||||||
|
import it.integry.ems_model.annotation.Table;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import it.integry.ems_model.annotation.PK;
|
||||||
|
import it.integry.ems_model.annotation.SqlField;
|
||||||
|
import it.integry.ems_model.annotation.FK;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@PropertyReactive()
|
||||||
|
@Table(value = TtbGrtgEl.ENTITY)
|
||||||
|
@JsonTypeName(value = TtbGrtgEl.ENTITY)
|
||||||
|
public class TtbGrtgEl extends EntityBase {
|
||||||
|
|
||||||
|
public final static String ENTITY = "Ttb_Grtg_el";
|
||||||
|
|
||||||
|
private final static Long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private final static Logger logger = LogManager.getLogger();
|
||||||
|
|
||||||
|
public TtbGrtgEl() {
|
||||||
|
super(logger);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PK()
|
||||||
|
@SqlField(value = "cod_grtg", maxLength = 5, nullable = false)
|
||||||
|
@FK(tableName = TtbGrtg.ENTITY, columnName = "cod_grtg")
|
||||||
|
private String codGrtg;
|
||||||
|
|
||||||
|
@PK()
|
||||||
|
@SqlField(value = "cod_tagl", maxLength = 15, nullable = false)
|
||||||
|
private String codTagl;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_tagl_estera", maxLength = 15, nullable = false)
|
||||||
|
private String codTaglEstera;
|
||||||
|
|
||||||
|
@SqlField(value = "pos", nullable = false)
|
||||||
|
private Integer pos;
|
||||||
|
|
||||||
|
@SqlField(value = "num_scatto", nullable = false)
|
||||||
|
private BigDecimal numScatto;
|
||||||
|
|
||||||
|
@SqlField(value = "statura", maxLength = 15, nullable = true)
|
||||||
|
private String statura;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_tagl_cad", maxLength = 15, nullable = true)
|
||||||
|
private String codTaglCad;
|
||||||
|
|
||||||
|
@SqlField(value = "eta", maxLength = 5, nullable = true)
|
||||||
|
private String eta;
|
||||||
|
|
||||||
|
@SqlField(value = "babynobaby", maxLength = 2, nullable = true)
|
||||||
|
private String babynobaby;
|
||||||
|
|
||||||
|
@SqlField(value = "range_taglie", nullable = false)
|
||||||
|
private Short rangeTaglie;
|
||||||
|
|
||||||
|
public String getCodGrtg() {
|
||||||
|
return codGrtg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setCodGrtg(String codGrtg) {
|
||||||
|
this.codGrtg = codGrtg;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodTagl() {
|
||||||
|
return codTagl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setCodTagl(String codTagl) {
|
||||||
|
this.codTagl = codTagl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodTaglEstera() {
|
||||||
|
return codTaglEstera;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setCodTaglEstera(String codTaglEstera) {
|
||||||
|
this.codTaglEstera = codTaglEstera;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPos() {
|
||||||
|
return pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setPos(Integer pos) {
|
||||||
|
this.pos = pos;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getNumScatto() {
|
||||||
|
return numScatto;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setNumScatto(BigDecimal numScatto) {
|
||||||
|
this.numScatto = numScatto;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatura() {
|
||||||
|
return statura;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setStatura(String statura) {
|
||||||
|
this.statura = statura;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodTaglCad() {
|
||||||
|
return codTaglCad;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setCodTaglCad(String codTaglCad) {
|
||||||
|
this.codTaglCad = codTaglCad;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEta() {
|
||||||
|
return eta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setEta(String eta) {
|
||||||
|
this.eta = eta;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBabynobaby() {
|
||||||
|
return babynobaby;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setBabynobaby(String babynobaby) {
|
||||||
|
this.babynobaby = babynobaby;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getRangeTaglie() {
|
||||||
|
return rangeTaglie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbGrtgEl setRangeTaglie(Short rangeTaglie) {
|
||||||
|
this.rangeTaglie = rangeTaglie;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,109 @@
|
|||||||
|
package it.integry.ems_model.entity;
|
||||||
|
|
||||||
|
import org.apache.logging.log4j.LogManager;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import it.integry.ems_model.base.EntityBase;
|
||||||
|
import it.integry.ems_model.annotation.Master;
|
||||||
|
import org.kie.api.definition.type.PropertyReactive;
|
||||||
|
import it.integry.ems_model.annotation.Table;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import it.integry.ems_model.annotation.PK;
|
||||||
|
import it.integry.ems_model.annotation.Identity;
|
||||||
|
import it.integry.ems_model.annotation.SqlField;
|
||||||
|
import it.integry.ems_model.annotation.FK;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Master()
|
||||||
|
@PropertyReactive()
|
||||||
|
@Table(value = TtbQtaMinOrd.ENTITY)
|
||||||
|
@JsonTypeName(value = TtbQtaMinOrd.ENTITY)
|
||||||
|
public class TtbQtaMinOrd extends EntityBase {
|
||||||
|
|
||||||
|
public final static String ENTITY = "ttb_qta_min_ord";
|
||||||
|
|
||||||
|
private final static Long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
private final static Logger logger = LogManager.getLogger();
|
||||||
|
|
||||||
|
public TtbQtaMinOrd() {
|
||||||
|
super(logger);
|
||||||
|
}
|
||||||
|
|
||||||
|
@PK()
|
||||||
|
@Identity()
|
||||||
|
@SqlField(value = "id", nullable = false)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_line", maxLength = 5, nullable = true)
|
||||||
|
private String codLine;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_style", maxLength = 15, nullable = true)
|
||||||
|
@FK(tableName = TtbStyle.ENTITY, columnName = "cod_style")
|
||||||
|
private String codStyle;
|
||||||
|
|
||||||
|
@SqlField(value = "cod_grtg", maxLength = 5, nullable = false)
|
||||||
|
@FK(tableName = TtbGrtg.ENTITY, columnName = "cod_grtg")
|
||||||
|
private String codGrtg;
|
||||||
|
|
||||||
|
@SqlField(value = "range_taglie", nullable = false)
|
||||||
|
private Short rangeTaglie;
|
||||||
|
|
||||||
|
@SqlField(value = "qta_min_ord", nullable = false)
|
||||||
|
private BigDecimal qtaMinOrd;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbQtaMinOrd setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodLine() {
|
||||||
|
return codLine;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbQtaMinOrd setCodLine(String codLine) {
|
||||||
|
this.codLine = codLine;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodStyle() {
|
||||||
|
return codStyle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbQtaMinOrd setCodStyle(String codStyle) {
|
||||||
|
this.codStyle = codStyle;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCodGrtg() {
|
||||||
|
return codGrtg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbQtaMinOrd setCodGrtg(String codGrtg) {
|
||||||
|
this.codGrtg = codGrtg;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Short getRangeTaglie() {
|
||||||
|
return rangeTaglie;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbQtaMinOrd setRangeTaglie(Short rangeTaglie) {
|
||||||
|
this.rangeTaglie = rangeTaglie;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getQtaMinOrd() {
|
||||||
|
return qtaMinOrd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TtbQtaMinOrd setQtaMinOrd(BigDecimal qtaMinOrd) {
|
||||||
|
this.qtaMinOrd = qtaMinOrd;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user