1 25 package org.objectweb.easybeans.tests.common.ejbs.entity.customer; 26 27 import java.io.Serializable ; 28 29 import javax.persistence.Entity; 30 import javax.persistence.Id; 31 32 38 @Entity 39 public class Address implements Serializable { 40 41 44 private static final long serialVersionUID = -2074717414531301945L; 45 46 49 private long id; 50 51 54 private String street; 55 56 59 private String country; 60 61 64 private int number; 65 66 73 public Address(final long id, final String street, final String country, final int number) { 74 this.id = id; 75 this.street = street; 76 this.country = country; 77 this.number = number; 78 } 79 80 83 public Address() { 84 85 } 86 87 91 public String getCountry() { 92 return country; 93 } 94 95 99 public void setCountry(final String country) { 100 this.country = country; 101 } 102 103 107 @Id 108 public long getId() { 109 return id; 110 } 111 112 116 public void setId(final long id) { 117 this.id = id; 118 } 119 120 124 public int getNumber() { 125 return number; 126 } 127 128 132 public void setNumber(final int number) { 133 this.number = number; 134 } 135 136 140 public String getStreet() { 141 return street; 142 } 143 144 148 public void setStreet(final String street) { 149 this.street = street; 150 } 151 152 } 153 | Popular Tags |