package com.tourMate.entities; import jakarta.persistence.*; import org.jetbrains.annotations.NotNull; @Entity @Table(name = "roles") public class Role { private long roleId; private String roleName; public Role(String roleName) { this.roleName = roleName; } public Role() { } @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "role_id", unique = true, nullable = false) @NotNull public long getRoleId() { return roleId; } public void setRoleId(long roleId) { this.roleId = roleId; } @Column(name = "name", unique = true, nullable = false) public String getRoleName() { return roleName; } public void setRoleName(String roleName) { this.roleName = roleName; } }