Skip to content

Commit

Permalink
Role.java created
Browse files Browse the repository at this point in the history
  • Loading branch information
Hdelegido committed Feb 20, 2024
1 parent 6f9cc92 commit 4d3b693
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,12 @@
</exclusion>
</exclusions>
</dependency>
</dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.15.3</version>
</dependency>
</dependencies>

<build>
<plugins>
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Role.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.persistence.Table;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Entity
@Table(name = "Role") // Nombre de la tabla en la base de datos
@Data
@EqualsAndHashCode(callSuper = true)
public class Role extends UriEntity<String> {

@Id
private String id;

@NotBlank
private String name;
}

0 comments on commit 4d3b693

Please sign in to comment.