Created
September 22, 2013 12:52
-
-
Save craigew/6659621 to your computer and use it in GitHub Desktop.
The customer entity
This file contains hidden or 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
@Entity | |
public class Customer extends BaseEntity{ | |
private String name; | |
private String surname; | |
private String identity_number; | |
private int age; | |
public Customer(String name, String surname, String identity_number, int age) { | |
this.name = name; | |
this.surname = surname; | |
this.identity_number = identity_number; | |
this.age = age; | |
} | |
protected Customer() { | |
} | |
public String getName() { | |
return name; | |
} | |
public String getSurname() { | |
return surname; | |
} | |
public String getIdentity_number() { | |
return identity_number; | |
} | |
public int getAge() { | |
return age; | |
} | |
public void setAge(int age) { | |
this.age = age; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment