Created
August 12, 2019 09:01
-
-
Save devindianushika/be39c7e50d51fdf2e7695032c6b7e1cd to your computer and use it in GitHub Desktop.
User Entity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.audelia.first.Domain; | |
import javax.persistence.*; | |
@Entity | |
@Table(name = "user") | |
public class UserDTO { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
@Column(name = "user_id") | |
private Integer id; | |
@Column(name = "first_name") | |
private String firstName; | |
@Column(name = "last_name") | |
private String lastName; | |
@Column(name = "age") | |
private Integer age; | |
@Column(name = "email") | |
private String email; | |
public Integer getId() { | |
return id; | |
} | |
public void setId(Integer id) { | |
this.id = id; | |
} | |
public String getFirstName() { | |
return firstName; | |
} | |
public void setFirstName(String firstName) { | |
this.firstName = firstName; | |
} | |
public String getLastName() { | |
return lastName; | |
} | |
public void setLastName(String lastName) { | |
this.lastName = lastName; | |
} | |
public Integer getAge() { | |
return age; | |
} | |
public void setAge(Integer age) { | |
this.age = age; | |
} | |
public String getEmail() { | |
return email; | |
} | |
public void setEmail(String email) { | |
this.email = email; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment