Skip to content

Commit 59ca7fe

Browse files
committed
add tags to patterns
1 parent cb6295e commit 59ca7fe

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/io/github/patternatlas/api/entities/Pattern.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ public class Pattern extends EntityWithURI {
5252

5353
@Column(columnDefinition = "boolean default false")
5454
private Boolean deploymentModelingBehaviorPattern;
55+
56+
private String tags;
5557
}

src/main/java/io/github/patternatlas/api/rest/model/PatternModel.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public class PatternModel {
2929
private Boolean deploymentModelingBehaviorPattern;
3030
private Boolean deploymentModelingStructurePattern;
3131

32+
protected String tags;
33+
3234
@JsonIgnore
3335
protected Pattern pattern;
3436

@@ -43,6 +45,7 @@ private PatternModel(Pattern pattern) {
4345
this.patternLanguageName = patternLanguage.getName();
4446
this.deploymentModelingBehaviorPattern = pattern.getDeploymentModelingBehaviorPattern();
4547
this.deploymentModelingStructurePattern = pattern.getDeploymentModelingStructurePattern();
48+
this.tags = pattern.getTags();
4649
}
4750

4851
public static PatternModel from(Pattern pattern) {

0 commit comments

Comments
 (0)