Skip to content

Commit 7b1d5a3

Browse files
committed
Added description field to service
1 parent 95f2c7d commit 7b1d5a3

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/main/java/edu/tamu/app/model/Service.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import javax.persistence.Column;
1313
import javax.persistence.ElementCollection;
1414
import javax.persistence.Entity;
15+
import javax.persistence.Lob;
1516
import javax.persistence.OneToMany;
1617
import javax.validation.constraints.Size;
1718

@@ -55,6 +56,10 @@ public class Service extends BaseEntity {
5556

5657
@Column(nullable = false)
5758
private Boolean onShortList;
59+
60+
@Lob
61+
@Column(nullable = true)
62+
private String description;
5863

5964
@OneToMany(fetch = EAGER, cascade = { REFRESH, REMOVE }, mappedBy = "service")
6065
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, scope = Note.class, property = "id")
@@ -148,4 +153,12 @@ public Boolean getOnShortList() {
148153
public void setOnShortList(Boolean onShortList) {
149154
this.onShortList = onShortList;
150155
}
156+
157+
public String getDescription() {
158+
return description;
159+
}
160+
161+
public void setDescription(String description) {
162+
this.description = description;
163+
}
151164
}

0 commit comments

Comments
 (0)