Skip to content

Commit

Permalink
Merge pull request #9 from UdL-EPS-SoftArch/crud-Permission
Browse files Browse the repository at this point in the history
Add Permission entity model
  • Loading branch information
jorgechp authored Feb 27, 2024
2 parents 179c4e3 + 3b4441d commit 936adff
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Permission.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package cat.udl.eps.softarch.demo.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission {

@Id
private Long id;

@NotNull
@NotBlank
private String name;
}

0 comments on commit 936adff

Please sign in to comment.