org.ow2.easybeans.examples.maven.jpa2.entity
Class Address

java.lang.Object
  extended by org.ow2.easybeans.examples.maven.jpa2.entity.Address
All Implemented Interfaces:
java.io.Serializable

@Entity
public class Address
extends java.lang.Object
implements java.io.Serializable

Address of an employee.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Address()
           
 
Method Summary
 java.lang.String getCity()
           
 java.lang.String getTitle()
           
 void setCity(java.lang.String city)
          Defines the city of this address.
 void setTitle(java.lang.String title)
          Defines the title of this address.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

getTitle

public java.lang.String getTitle()
Returns:
the title of the address.

setTitle

public void setTitle(java.lang.String title)
Defines the title of this address.

Parameters:
title - the given title

getCity

public java.lang.String getCity()
Returns:
the city of this address.

setCity

public void setCity(java.lang.String city)
Defines the city of this address.

Parameters:
city - the given city

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
string corresponding to this entity


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.