1 package org.hibernate.test.propertyref; 3 4 import java.util.HashSet ; 5 import java.util.Set ; 6 7 10 public class Person { 11 private Long id; 12 private String name; 13 private Address address; 14 private String userId; 15 private Set accounts = new HashSet (); 16 19 public String getUserId() { 20 return userId; 21 } 22 25 public void setUserId(String userId) { 26 this.userId = userId; 27 } 28 31 public Address getAddress() { 32 return address; 33 } 34 37 public void setAddress(Address address) { 38 this.address = address; 39 } 40 43 public Long getId() { 44 return id; 45 } 46 49 public void setId(Long id) { 50 this.id = id; 51 } 52 55 public String getName() { 56 return name; 57 } 58 61 public void setName(String name) { 62 this.name = name; 63 } 64 67 public Set getAccounts() { 68 return accounts; 69 } 70 73 public void setAccounts(Set accounts) { 74 this.accounts = accounts; 75 } 76 } 77 | Popular Tags |