Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.persistence.*;
- @Entity
- public class Person implements java.io.Serializable {
- private long id;
- private String firstName;
- private String lastName;
- @Id
- @GeneratedValue
- public long getId( ) {
- return id;
- }
- public void setId(long 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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement