Skip to content

Instantly share code, notes, and snippets.

@edwin
Created May 4, 2020 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwin/e995d3c644c8e7af1425b9ad96c1361a to your computer and use it in GitHub Desktop.
Save edwin/e995d3c644c8e7af1425b9ad96c1361a to your computer and use it in GitHub Desktop.
package com.redhat.edwin.model;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
* <pre>
* com.redhat.edwin.model.UserProfile
* </pre>
*
* @author Muhammad Edwin < edwin at redhat dot com >
* 04 Mei 2020 11:46
*/
@Entity
@Table(name = "t_user_profile")
public class UserProfile implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String fullname;
private String address;
private String phonenumber;
private Date createdDate;
public UserProfile() {
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getFullname() {
return fullname;
}
public void setFullname(String fullname) {
this.fullname = fullname;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPhonenumber() {
return phonenumber;
}
public void setPhonenumber(String phonenumber) {
this.phonenumber = phonenumber;
}
public Date getCreatedDate() {
return createdDate;
}
public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}
@Override
public String toString() {
return "UserProfile{" +
"id=" + id +
", fullname='" + fullname + '\'' +
", address='" + address + '\'' +
", phonenumber='" + phonenumber + '\'' +
", createdDate=" + createdDate +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment