Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The persistent class for the user database table.
- *
- */
- @Entity
- @NamedQuery(name="User.findAll", query="SELECT u FROM User u")
- public class User implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @GeneratedValue(strategy=GenerationType.IDENTITY)
- private long iduser;
- @Temporal(TemporalType.TIMESTAMP)
- private Date born;
- private byte connected;
- private Timestamp creation;
- private String gender;
- private String mail;
- private String password;
- private String pseudo;
- //bi-directional one-to-one association to Profile
- @OneToOne(mappedBy="user", cascade={CascadeType.ALL})
- private Profile profile;
- public User() {
- }
- public long getIduser() {
- return this.iduser;
- }
- public void setIduser(long iduser) {
- this.iduser = iduser;
- }
- public Date getBorn() {
- return this.born;
- }
- public void setBorn(Date born) {
- this.born = born;
- }
- public byte getConnected() {
- return this.connected;
- }
- public void setConnected(byte connected) {
- this.connected = connected;
- }
- public Timestamp getCreation() {
- return this.creation;
- }
- public void setCreation(Timestamp creation) {
- this.creation = creation;
- }
- public String getGender() {
- return this.gender;
- }
- public void setGender(String gender) {
- this.gender = gender;
- }
- public String getMail() {
- return this.mail;
- }
- public void setMail(String mail) {
- this.mail = mail;
- }
- public String getPassword() {
- return this.password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public String getPseudo() {
- return this.pseudo;
- }
- public void setPseudo(String pseudo) {
- this.pseudo = pseudo;
- }
- public Profile getProfile() {
- return this.profile;
- }
- public void setProfile(Profile profile) {
- this.profile = profile;
- }
- }
Add Comment
Please, Sign In to add comment