@@ -0,0 +1,1278 @@
+import javax.persistence.Column;%0Aimport javax.persistence.EmbeddedId;%0Aimport javax.persistence.Entity;%0A%0A/**%0A * %E7%B3%BB%E7%BB%9F%E6%9D%83%E9%99%90%0A */%0A@Entity%0Apublic class SystemPrivilege %7B%0A%09private SystemPrivilegePK id;%0A%09/* %E6%9D%83%E9%99%90%E5%90%8D%E7%A7%B0 */%0A%09private String name;%0A%09%0A%09public SystemPrivilege(String model, String privilegeValue, String name) %7B%0A%09%09this.id = new SystemPrivilegePK(model, privilegeValue);%0A%09%09this.name = name;%0A%09%7D%0A%09%0A%09public SystemPrivilege(SystemPrivilegePK id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%09%0A%09public SystemPrivilege()%7B%7D%0A%09%0A%09@EmbeddedId%0A%09public SystemPrivilegePK getId() %7B%0A%09%09return id;%0A%09%7D%0A%09public void setId(SystemPrivilegePK id) %7B%0A%09%09this.id = id;%0A%09%7D%0A%09@Column(length=20,nullable=false)%0A%09public String getName() %7B%0A%09%09return name;%0A%09%7D%0A%09public void setName(String name) %7B%0A%09%09this.name = name;%0A%09%7D%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09final int prime = 31;%0A%09%09int result = 1;%0A%09%09result = prime * result + ((id == null) ? 0 : id.hashCode());%0A%09%09return result;%0A%09%7D%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj)%0A%09%09%09return true;%0A%09%09if (obj == null)%0A%09%09%09return false;%0A%09%09if (getClass() != obj.getClass())%0A%09%09%09return false;%0A%09%09final SystemPrivilege other = (SystemPrivilege) obj;%0A%09%09if (id == null) %7B%0A%09%09%09if (other.id != null)%0A%09%09%09%09return false;%0A%09%09%7D else if (!id.equals(other.id))%0A%09%09%09return false;%0A%09%09return true;%0A%09%7D%0A%09%0A%09%0A%7D%0A

Create SystemPrivilege.java