Skip to content

Commit

Permalink
update db api with new category scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
vvalerio-priv committed Feb 5, 2024
1 parent 2aa34b2 commit 990db7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.epos.handler.dbapi.dbapiimplementation;

import org.epos.eposdatamodel.Category;
import org.epos.eposdatamodel.CategoryScheme;
import org.epos.eposdatamodel.LinkedEntity;
import org.epos.handler.dbapi.model.*;
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/org/epos/handler/dbapi/model/EDMCategoryScheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class EDMCategoryScheme {
private String homepage;
private String color;
private String orderitemnumber;
private Collection<EDMHasTopConcept> hasTopConceptCategoriesById;


@Id
Expand Down Expand Up @@ -114,16 +113,6 @@ public String getOrderitemnumber() {
public void setOrderitemnumber(String orderitemnumber) {
this.orderitemnumber = orderitemnumber;
}

@OneToMany(mappedBy = "categoryByCategoryId", fetch=FetchType.LAZY)
public Collection<EDMHasTopConcept> getHasTopConceptCategoriesById() {
return hasTopConceptCategoriesById;
}

public void setHasTopConceptCategoriesById(Collection<EDMHasTopConcept> hasTopConceptCategoriesById) {
this.hasTopConceptCategoriesById = hasTopConceptCategoriesById;
}


@Override
public int hashCode() {
Expand Down
5 changes: 3 additions & 2 deletions src/test/java/tests/APITests.java
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,8 @@ public class APITests {

public static void main(String[] args) {

DBAPIClient dbapi = new DBAPIClient();
testCategories();
/*DBAPIClient dbapi = new DBAPIClient();
WebService a = new WebService();
a.setUid("a");
Expand All @@ -1051,7 +1052,7 @@ public static void main(String[] args) {
b.setRelation(les);
LinkedEntity leB = dbapi.create(b);
System.out.println(leB);
System.out.println(leB);*/

/*DataProduct dp = new DataProduct();
dp.setUid("prova-vv");
Expand Down

0 comments on commit 990db7b

Please sign in to comment.