Skip to content

Instantly share code, notes, and snippets.

@donatasnicequestion
Created July 4, 2012 00:23
Show Gist options
  • Save donatasnicequestion/3044335 to your computer and use it in GitHub Desktop.
Save donatasnicequestion/3044335 to your computer and use it in GitHub Desktop.
Snippet of Person.java domain object for the CRUD sample
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