creata entity mtbSsfam come entity child mtbSfam
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:
@@ -1,6 +1,7 @@
|
||||
package it.integry.ems_model.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import it.integry.ems_model.annotation.EntityChild;
|
||||
import it.integry.ems_model.annotation.PK;
|
||||
import it.integry.ems_model.annotation.SqlField;
|
||||
import it.integry.ems_model.annotation.Table;
|
||||
@@ -10,6 +11,8 @@ import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@PropertyReactive
|
||||
@@ -38,6 +41,13 @@ public class MtbSfam extends EntityBase implements EquatableEntityInterface<MtbS
|
||||
@SqlField(value = "descrizione", maxLength = 40, nullable = false)
|
||||
private String descrizione;
|
||||
|
||||
@EntityChild
|
||||
private List<MtbSsfam> mtbSsfam;
|
||||
|
||||
{
|
||||
mtbSsfam = new ArrayList<>();
|
||||
}
|
||||
|
||||
public MtbSfam() {
|
||||
super(logger);
|
||||
}
|
||||
|
||||
100
ems-core/src/main/java/it/integry/ems_model/entity/MtbSsfam.java
Normal file
100
ems-core/src/main/java/it/integry/ems_model/entity/MtbSsfam.java
Normal file
@@ -0,0 +1,100 @@
|
||||
package it.integry.ems_model.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import it.integry.ems_model.annotation.FK;
|
||||
import it.integry.ems_model.annotation.PK;
|
||||
import it.integry.ems_model.annotation.SqlField;
|
||||
import it.integry.ems_model.annotation.Table;
|
||||
import it.integry.ems_model.base.EntityBase;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
|
||||
|
||||
@PropertyReactive()
|
||||
@Table(value = MtbSsfam.ENTITY)
|
||||
@JsonTypeName(value = MtbSsfam.ENTITY)
|
||||
public class MtbSsfam extends EntityBase {
|
||||
|
||||
public final static String ENTITY = "mtb_ssfam";
|
||||
|
||||
private final static Long serialVersionUID = 1L;
|
||||
|
||||
private final static Logger logger = LogManager.getLogger();
|
||||
|
||||
public MtbSsfam() {
|
||||
super(logger);
|
||||
}
|
||||
|
||||
@PK()
|
||||
@SqlField(value = "cod_mgrp", maxLength = 5, nullable = false)
|
||||
@FK(tableName = MtbGrup.ENTITY, columnName = "cod_mgrp")
|
||||
@FK(tableName = MtbSfam.ENTITY, columnName = "cod_mgrp")
|
||||
@FK(tableName = MtbSgrp.ENTITY, columnName = "cod_mgrp")
|
||||
private String codMgrp;
|
||||
|
||||
@PK()
|
||||
@SqlField(value = "cod_msgr", maxLength = 5, nullable = false)
|
||||
@FK(tableName = MtbSfam.ENTITY, columnName = "cod_msgr")
|
||||
@FK(tableName = MtbSgrp.ENTITY, columnName = "cod_msgr")
|
||||
private String codMsgr;
|
||||
|
||||
@PK()
|
||||
@SqlField(value = "cod_msfa", maxLength = 6, nullable = false)
|
||||
@FK(tableName = MtbSfam.ENTITY, columnName = "cod_msfa")
|
||||
private String codMsfa;
|
||||
|
||||
@PK()
|
||||
@SqlField(value = "cod_mssfa", maxLength = 6, nullable = false)
|
||||
private String codMssfa;
|
||||
|
||||
@SqlField(value = "descrizione", maxLength = 40, nullable = false)
|
||||
private String descrizione;
|
||||
|
||||
public String getCodMgrp() {
|
||||
return codMgrp;
|
||||
}
|
||||
|
||||
public MtbSsfam setCodMgrp(String codMgrp) {
|
||||
this.codMgrp = codMgrp;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodMsgr() {
|
||||
return codMsgr;
|
||||
}
|
||||
|
||||
public MtbSsfam setCodMsgr(String codMsgr) {
|
||||
this.codMsgr = codMsgr;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodMsfa() {
|
||||
return codMsfa;
|
||||
}
|
||||
|
||||
public MtbSsfam setCodMsfa(String codMsfa) {
|
||||
this.codMsfa = codMsfa;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCodMssfa() {
|
||||
return codMssfa;
|
||||
}
|
||||
|
||||
public MtbSsfam setCodMssfa(String codMssfa) {
|
||||
this.codMssfa = codMssfa;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return descrizione;
|
||||
}
|
||||
|
||||
public MtbSsfam setDescrizione(String descrizione) {
|
||||
this.descrizione = descrizione;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user