//$Id$ package mapping.version; public class Task { private String description; private Person person; private int version; public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } Task() {} public Task(String description, Person person) { this.description = description; this.person = person; person.getTasks().add(this); } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public Person getPerson() { return person; } public void setPerson(Person person) { this.person = person; } }