Created
July 4, 2012 00:23
-
-
Save donatasnicequestion/3044335 to your computer and use it in GitHub Desktop.
Snippet of Person.java domain object for the CRUD sample
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
public class Person { | |
private Integer number; | |
private String firstName; | |
private String lastName; | |
private Date birthday; | |
public Person() { | |
super(); | |
} | |
/** | |
* Copy constructor to provide clone funktionality | |
* | |
* @param person instance to clone | |
*/ | |
public Person(Person person) { | |
this.number = person.number; | |
this.firstName = person.firstName; | |
this.lastName = person.lastName; | |
this.birthday = person.birthday; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment