@@ -0,0 +1,1737 @@
+package entity;%0A%0Aimport java.io.Serializable;%0Aimport javax.persistence.*;%0A%0A@Entity%0Apublic class FinalUser implements Serializable %7B%0A%0A%09/**%0A%09 * %0A%09 */%0A%09private static final long serialVersionUID = 1L;%0A%0A%09@Id%0A%09@GeneratedValue(strategy = GenerationType.AUTO)%0A%09@Column(name = %22USER_ID%22)%0A%09private int idFinalUser;%0A%0A%09private String userName;%0A%0A%09// private MailBox mailbox;%0A%09private boolean readAccess;%0A%09private boolean writeAccess;%0A%09private String password;%0A%0A%09public FinalUser() %7B%0A%0A%09%7D%0A%0A%09public FinalUser(String userName, String password) %7B%0A%09%09super();%0A%09%09this.userName = userName;%0A%09%09this.password = password;%0A%0A%09%7D%0A%0A%09public int getId() %7B%0A%09%09return idFinalUser;%0A%09%7D%0A%0A%09public void setId(int id) %7B%0A%09%09this.idFinalUser = id;%0A%09%7D%0A%0A%09public String getuserName() %7B%0A%09%09return userName;%0A%09%7D%0A%0A%09public void setuserName(String userName) %7B%0A%09%09this.userName = userName;%0A%09%7D%0A%0A%09public boolean getReadAccess() %7B%0A%09%09return this.readAccess;%0A%09%7D%0A%0A%09public void setReadAccess(boolean readRight) %7B%0A%09%09this.readAccess = readRight;%0A%09%7D%0A%0A%09public void unsetReadAccess() %7B%0A%09%09this.readAccess = false;%0A%09%7D%0A%0A%09public boolean getWriteAccess() %7B%0A%09%09return this.writeAccess;%0A%09%7D%0A%0A%09public void setWriteAccess(boolean writeRight) %7B%0A%09%09this.writeAccess = writeRight;%0A%09%7D%0A%0A%09public void unsetWriteAccess() %7B%0A%09%09this.writeAccess = false;%0A%09%7D%0A%0A%09public String getPassword() %7B%0A%09%09return this.password;%0A%09%7D%0A%0A%09public void setPassword(String password) %7B%0A%09%09this.password = password;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22Id : %22 + idFinalUser + %22%5Ct userName : %22%0A%09%09%09%09+ userName + %22%5Cn%22;%0A%09%7D%0A%09%0A%09%0A%0A%09/*%0A%09 * @OneToOne%0A%09 * %0A%09 * @JoinColumn(name=%22BOX_ID%22, nullable=false) public MailBox getMailBox () %7B%0A%09 * return this.mailbox; %7D%0A%09 * %0A%09 * public void setMailBox (MailBox mailBox) %7B this.mailbox = mailBox; %7D%0A%09 */%0A%0A%7D%0A

Create FinalUser.java