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:
Serializable

@Entity
public class Address
extends Object
implements Serializable

Address of an employee.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Address()
           
 
Method Summary
 String getCity()
           
 String getTitle()
           
 void setCity(String city)
          Defines the city of this address.
 void setTitle(String title)
          Defines the title of this address.
 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 String getTitle()
Returns:
the title of the address.

setTitle

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

Parameters:
title - the given title

getCity

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

setCity

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

Parameters:
city - the given city

toString

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


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