creata entity mtbSsfam come entity child mtbSfam
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-11-14 12:14:20 +01:00
parent 81a42fc1d9
commit 46e8a19c53
2 changed files with 110 additions and 0 deletions

View File

@@ -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);
}

View 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;
}
}