Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriovinciarelli authored and valeriovinciarelli committed May 31, 2023
1 parent 148d95d commit 3aae85d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ protected Category mapFromDB(Object edmObject) {
o.setName(edm.getName());
o.setDescription(edm.getDescription());

edm.getIspartofCategoriesById_0().isEmpty();
edm.getIspartofCategoriesById().isEmpty();

if(edm.getIspartofCategoriesById_0().size()==1)
o.setBroader(((List<EDMIspartofCategory>)edm.getIspartofCategoriesById_0()).get(0).getCategory1Id());

Expand Down
20 changes: 10 additions & 10 deletions src/main/java/org/epos/handler/dbapi/model/EDMCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public int hashCode() {
return Objects.hash(id, description, name);
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMDataproductCategory> getDataproductCategoriesById() {
return dataproductCategoriesById;
}
Expand All @@ -100,7 +100,7 @@ public void setDataproductCategoriesById(Collection<EDMDataproductCategory> data
this.dataproductCategoriesById = dataproductCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMEquipmentCategory> getEquipmentCategoriesById() {
return equipmentCategoriesById;
}
Expand All @@ -109,7 +109,7 @@ public void setEquipmentCategoriesById(Collection<EDMEquipmentCategory> equipmen
this.equipmentCategoriesById = equipmentCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategory1Id",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategory1Id",fetch=FetchType.LAZY)
public Collection<EDMIspartofCategory> getIspartofCategoriesById() {
return ispartofCategoriesById;
}
Expand All @@ -118,7 +118,7 @@ public void setIspartofCategoriesById(Collection<EDMIspartofCategory> ispartofCa
this.ispartofCategoriesById = ispartofCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategory2Id",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategory2Id",fetch=FetchType.LAZY)
public Collection<EDMIspartofCategory> getIspartofCategoriesById_0() {
return ispartofCategoriesById_0;
}
Expand All @@ -127,7 +127,7 @@ public void setIspartofCategoriesById_0(Collection<EDMIspartofCategory> ispartof
this.ispartofCategoriesById_0 = ispartofCategoriesById_0;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMPublicationCategory> getPublicationCategoriesById() {
return publicationCategoriesById;
}
Expand All @@ -136,7 +136,7 @@ public void setPublicationCategoriesById(Collection<EDMPublicationCategory> publ
this.publicationCategoriesById = publicationCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMServiceCategory> getServiceCategoriesById() {
return serviceCategoriesById;
}
Expand All @@ -145,7 +145,7 @@ public void setServiceCategoriesById(Collection<EDMServiceCategory> serviceCateg
this.serviceCategoriesById = serviceCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMSoftwareapplicationCategory> getSoftwareapplicationCategoriesById() {
return softwareapplicationCategoriesById;
}
Expand All @@ -154,7 +154,7 @@ public void setSoftwareapplicationCategoriesById(Collection<EDMSoftwareapplicati
this.softwareapplicationCategoriesById = softwareapplicationCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMSoftwaresourcecodeCategory> getSoftwaresourcecodeCategoriesById() {
return softwaresourcecodeCategoriesById;
}
Expand All @@ -163,7 +163,7 @@ public void setSoftwaresourcecodeCategoriesById(Collection<EDMSoftwaresourcecode
this.softwaresourcecodeCategoriesById = softwaresourcecodeCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMWebserviceCategory> getWebserviceCategoriesById() {
return webserviceCategoriesById;
}
Expand All @@ -172,7 +172,7 @@ public void setWebserviceCategoriesById(Collection<EDMWebserviceCategory> webser
this.webserviceCategoriesById = webserviceCategoriesById;
}

@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.EAGER)
@OneToMany(mappedBy = "categoryByCategoryId",fetch=FetchType.LAZY)
public Collection<EDMFacilityCategory> getFacilityCategoriesById() {
return facilityCategoriesById;
}
Expand Down

0 comments on commit 3aae85d

Please sign in to comment.