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: Telephone.java 1970 2007-10-16 11:49:25Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.tests.common.ejbs.entity.entitytest00;
025:
026: import javax.persistence.Embeddable;
027:
028: /**
029: * The telephone data.
030: * @author Gisele Pinheiro Souza
031: * @author Eduardo Studzinski Estima de Castro
032: *
033: */
034: @Embeddable
035: public class Telephone {
036:
037: /**
038: * The mobile number.
039: */
040: private String mobile;
041:
042: /**
043: * The home number.
044: */
045: private String homePhone;
046:
047: /**
048: * The work number.
049: */
050: private String workPhone;
051:
052: /**
053: * Returns the home telephone number.
054: * @return the telephone number.
055: */
056: public String getHomePhone() {
057: return homePhone;
058: }
059:
060: /**
061: * Sets the home telephone number.
062: * @param homePhone the telephone number.
063: */
064: public void setHomePhone(final String homePhone) {
065: this .homePhone = homePhone;
066: }
067:
068: /**
069: * Returns the mobile telephone number.
070: * @return the telephone number.
071: */
072: public String getMobile() {
073: return mobile;
074: }
075:
076: /**
077: * Sets the mobile telephone number.
078: * @param mobile the telephone number.
079: */
080: public void setMobile(final String mobile) {
081: this .mobile = mobile;
082: }
083:
084: /**
085: * Returns the work telephone number.
086: * @return the telephone number.
087: */
088: public String getWorkPhone() {
089: return workPhone;
090: }
091:
092: /**
093: * Sets the work telephone number.
094: * @param workPhone the telephone number.
095: */
096: public void setWorkPhone(final String workPhone) {
097: this.workPhone = workPhone;
098: }
099:
100: }
|