Skip to content

Commit

Permalink
add: label domain builder
Browse files Browse the repository at this point in the history
  • Loading branch information
clemado1 committed Oct 12, 2022
1 parent b4c6c9a commit 743945f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/neorang/neims/issue/domain/Label.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
package com.neorang.neims.issue.domain;

import com.neorang.neims.globals.BaseEntity;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Entity
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Label extends BaseEntity {

@Id
Expand All @@ -21,4 +27,11 @@ public class Label extends BaseEntity {
@Enumerated(EnumType.STRING)
private Color color;

@Builder
public Label(long labelId, String label, Color color) {
this.labelId = labelId;
this.label = label;
this.color = color;
}

}

0 comments on commit 743945f

Please sign in to comment.