1 25 package org.objectweb.easybeans.tests.common.ejbs.entity.entitytest04; 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 = -4633350356479296752L; 45 46 49 private Long id; 50 51 54 private String street; 55 56 59 private int number; 60 61 64 private String country; 65 66 70 public String getCountry() { 71 return country; 72 } 73 74 78 public void setCountry(final String country) { 79 this.country = country; 80 } 81 82 86 @Id 87 public Long getId() { 88 return id; 89 } 90 91 95 public void setId(final Long id) { 96 this.id = id; 97 } 98 99 103 public int getNumber() { 104 return number; 105 } 106 107 111 public void setNumber(final int number) { 112 this.number = number; 113 } 114 115 119 public String getStreet() { 120 return street; 121 } 122 123 127 public void setStreet(final String street) { 128 this.street = street; 129 } 130 } 131 | Popular Tags |