1 19 20 package za.org.coefficient.authentication; 21 22 33 public class Role implements java.io.Serializable { 34 36 private Long id; 37 private String description; 38 private long roleValue; 39 40 42 public Role() { 43 } 44 45 public Role(long roleValue, String description) { 46 this.roleValue = roleValue; 47 this.description = description; 48 } 49 50 52 public void setDescription(String desc) { 53 this.description = desc; 54 } 55 56 63 public String getDescription() { 64 return description; 65 } 66 67 public void setId(Long id) { 68 this.id = id; 69 } 70 71 75 public Long getId() { 76 return id; 77 } 78 79 public void setRoleValue(long roleValue) { 80 this.roleValue = roleValue; 81 } 82 83 90 public long getRoleValue() { 91 return roleValue; 92 } 93 94 public boolean equals(Object other) { 95 Role o = (Role) other; 96 97 return roleValue == o.roleValue; 98 } 99 100 public String toString() { 101 return description; 102 } 103 } 104 | Popular Tags |