2 * In Samsung Ukraine R&D Center (SRK under a contract between)
3 * LLC "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
4 * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
6 package com.samsung.samserver.domain;
8 import javax.persistence.Entity;
9 import javax.persistence.Id;
10 import javax.persistence.Table;
11 import javax.persistence.Column;
12 import javax.validation.constraints.NotNull;
13 import javax.validation.constraints.Size;
14 import java.io.Serializable;
17 * An authority (a security role) used by Spring Security.
20 @Table(name = "jhi_authority")
22 public class Authority implements Serializable {
24 private static final long serialVersionUID = 1L;
32 public String getName() {
36 public void setName(String name) {
41 public boolean equals(Object o) {
45 if (o == null || getClass() != o.getClass()) {
49 Authority authority = (Authority) o;
51 return !(name != null ? !name.equals(authority.name) : authority.name != null);
55 public int hashCode() {
56 return name != null ? name.hashCode() : 0;
60 public String toString() {
62 "name='" + name + '\'' +