Skip to content

Commit

Permalink
added tag description property
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Apr 26, 2024
1 parent 8e3b9e0 commit 0c67d4f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions para-core/src/main/java/com/erudika/para/core/Tag.java
Expand Up @@ -53,6 +53,7 @@ public class Tag implements ParaObject {

@Stored @NotBlank @Locked private String tag;
@Stored private Integer count;
@Stored private String description;

/**
* No-args constructor.
Expand Down Expand Up @@ -123,6 +124,22 @@ public void setTag(String tag) {
replaceAll("\\p{Z}+", " "), "-");
}

/**
* Some description text for this tag.
* @return description
*/
public String getDescription() {
return description;
}

/**
* Sets the description for the tag.
* @param description some text
*/
public void setDescription(String description) {
this.description = description;
}

/**
* Increments the count when a new object is tagged.
*/
Expand Down

0 comments on commit 0c67d4f

Please sign in to comment.