001: /**
002: * EasyBeans
003: * Copyright (C) 2006 Bull S.A.S.
004: * Contact: easybeans@ow2.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: Address.java 1970 2007-10-16 11:49:25Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.tests.common.ejbs.entity.entitytest04;
025:
026: import java.io.Serializable;
027:
028: import javax.persistence.Entity;
029: import javax.persistence.Id;
030:
031: /**
032: * Contains the address reference.
033: * @author Gisele Pinheiro Souza
034: * @author Eduardo Studzinski Estima de Castro
035: *
036: */
037: @Entity
038: public class Address implements Serializable {
039:
040: /**
041: * The serial version.
042: */
043: private static final long serialVersionUID = -4633350356479296752L;
044:
045: /**
046: * Address identifier.
047: */
048: private Long id;
049:
050: /**
051: * Street name.
052: */
053: private String street;
054:
055: /**
056: * Home number.
057: */
058: private int number;
059:
060: /**
061: * Country name.
062: */
063: private String country;
064:
065: /**
066: * Gets the country name.
067: * @return the coutnry name.
068: */
069: public String getCountry() {
070: return country;
071: }
072:
073: /**
074: * Sets the country name.
075: * @param country the country name.
076: */
077: public void setCountry(final String country) {
078: this .country = country;
079: }
080:
081: /**
082: * Gets the address identifier.
083: * @return the identifier.
084: */
085: @Id
086: public Long getId() {
087: return id;
088: }
089:
090: /**
091: * Sets the address identifier.
092: * @param id the identifier.
093: */
094: public void setId(final Long id) {
095: this .id = id;
096: }
097:
098: /**
099: * Gets the house number.
100: * @return the number.
101: */
102: public int getNumber() {
103: return number;
104: }
105:
106: /**
107: * Sets the house number.
108: * @param number the new number.
109: */
110: public void setNumber(final int number) {
111: this .number = number;
112: }
113:
114: /**
115: * Gets the street name.
116: * @return the street name.
117: */
118: public String getStreet() {
119: return street;
120: }
121:
122: /**
123: * Sets the street name.
124: * @param street the street name.
125: */
126: public void setStreet(final String street) {
127: this.street = street;
128: }
129: }
|