1 22 package org.jboss.ejb3.test.dd.web.ejb; 23 24 import javax.persistence.Entity; 25 import javax.persistence.GeneratedValue; 26 import javax.persistence.GenerationType; 27 import javax.persistence.Id; 28 import javax.persistence.Table; 29 30 36 @Entity 37 @Table(name = "EJB3TEST_ADDRESS") 38 public class Address implements java.io.Serializable 39 { 40 private Long id; 41 private String street; 42 private String city; 43 private String state; 44 private String zip; 45 46 @Id 47 @GeneratedValue(strategy= GenerationType.IDENTITY) 48 public Long getId() 49 { 50 return id; 51 } 52 53 public void setId(Long id) 54 { 55 this.id = id; 56 } 57 58 public String getStreet() 59 { 60 return street; 61 } 62 63 public void setStreet(String street) 64 { 65 this.street = street; 66 } 67 68 public String getCity() 69 { 70 return city; 71 } 72 73 public void setCity(String city) 74 { 75 this.city = city; 76 } 77 78 public String getState() 79 { 80 return state; 81 } 82 83 public void setState(String state) 84 { 85 this.state = state; 86 } 87 88 public String getZip() 89 { 90 return zip; 91 } 92 93 public void setZip(String zip) 94 { 95 this.zip = zip; 96 } 97 98 } 99 | Popular Tags |