modificata classe vtb_vett

This commit is contained in:
2024-08-05 16:04:26 +02:00
parent 30d1c061e4
commit 1f925e5852

View File

@@ -77,6 +77,9 @@ public class VtbVett extends EntityBase {
@EntityChild @EntityChild
private List<VtbVetr> vtbVetr; private List<VtbVetr> vtbVetr;
@EntityChild
private List<VtbVettTarghe> vtbVettTarghe;
private String precode; private String precode;
public VtbVett() { public VtbVett() {
@@ -245,23 +248,21 @@ public class VtbVett extends EntityBase {
return this; return this;
} }
@Override public List<VtbVettTarghe> getVtbVettTarghe() {
protected void insertChilds() throws Exception { return vtbVettTarghe;
for (VtbVetr vtbVetr : getVtbVetr()) {
vtbVetr.manageWithParentConnection(connection, vtbVetr.getOperation(), dataCompleting, entityHolder);
}
} }
@Override public void setVtbVettTarghe(List<VtbVettTarghe> vtbVettTarghe) {
protected void updateChilds() throws Exception { this.vtbVettTarghe = vtbVettTarghe;
for (VtbVetr vtbVetr : getVtbVetr()) {
vtbVetr.manageWithParentConnection(connection, vtbVetr.getOperation(), dataCompleting, entityHolder);
}
} }
@Override @Override
protected void deleteChilds() throws Exception { protected void deleteChilds() throws Exception {
VtbVetr vtbVetr = new VtbVetr(); VtbVetr vtbVetr = new VtbVetr();
vtbVetr.deleteAllEntities(connection, this); vtbVetr.deleteAllEntities(connection, this);
VtbVettTarghe vtbVettTarghe = new VtbVettTarghe();
vtbVettTarghe.deleteAllEntities(connection, this);
} }
} }