mapping of new field 'browsable'
This commit is contained in:
parent
32f09af2a1
commit
05795a3604
|
@ -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()));
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue