mapping of new field 'browsable'

This commit is contained in:
Michele Artini 2023-10-18 10:52:19 +02:00
parent 32f09af2a1
commit 05795a3604
3 changed files with 14 additions and 0 deletions

View File

@ -328,6 +328,7 @@ public class CommunityImporterService {
sc.setLabel(c.getLabel());
sc.setParams(c.getParams());
sc.setClaim(c.isClaim());
sc.setBrowsable(false);
list.add(sc);
list.addAll(asSubCommunities(communityId, c.getId(), category, c.getConcepts()));
}

View File

@ -53,6 +53,9 @@ public class DbSubCommunity implements Serializable {
@Column(name = "claim")
private boolean claim = false;
@Column(name = "browsable")
private boolean browsable = false;
public String getId() {
return id;
}
@ -108,4 +111,12 @@ public class DbSubCommunity implements Serializable {
public void setClaim(final boolean claim) {
this.claim = claim;
}
public boolean isBrowsable() {
return browsable;
}
public void setBrowsable(final boolean browsable) {
this.browsable = browsable;
}
}

View File

@ -223,6 +223,7 @@ public class CommunityMappingUtils {
dbsc.setParams(sub.getParams());
dbsc.setParent(sub.getParent());
dbsc.setClaim(sub.isClaim());
dbsc.setBrowsable(sub.isBrowsable());
return dbsc;
}
@ -235,6 +236,7 @@ public class CommunityMappingUtils {
sc.setParams(sub.getParams());
sc.setParent(sub.getParent());
sc.setClaim(sub.isClaim());
sc.setBrowsable(sub.isBrowsable());
return sc;
}