1 7 package org.jboss.tutorial.relationships.bean; 8 9 import javax.persistence.Entity; 10 import javax.persistence.GeneratorType; 11 import javax.persistence.Id; 12 import javax.persistence.GeneratorType; 13 14 20 @Entity 21 public class Address implements java.io.Serializable 22 { 23 private Long id; 24 private String street; 25 private String city; 26 private String state; 27 private String zip; 28 29 @Id(generate = GeneratorType.IDENTITY) 30 public Long getId() 31 { 32 return id; 33 } 34 35 public void setId(Long id) 36 { 37 this.id = id; 38 } 39 40 public String getStreet() 41 { 42 return street; 43 } 44 45 public void setStreet(String street) 46 { 47 this.street = street; 48 } 49 50 public String getCity() 51 { 52 return city; 53 } 54 55 public void setCity(String city) 56 { 57 this.city = city; 58 } 59 60 public String getState() 61 { 62 return state; 63 } 64 65 public void setState(String state) 66 { 67 this.state = state; 68 } 69 70 public String getZip() 71 { 72 return zip; 73 } 74 75 public void setZip(String zip) 76 { 77 this.zip = zip; 78 } 79 80 } 81 | Popular Tags |