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

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

@Entity
public class Employee
extends Object
implements Serializable

A JPA 2.0 Entity.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Employee()
          Default constructor.
 
Method Summary
 void addNickName(String nickName)
          Adds the given nickname.
 List<Address> getAddresses()
           
 Map<Date,String> getHistoryEvents()
           
 int getId()
           
 Set<EmployeeLevelType> getLevelRights()
           
 String getName()
           
 List<String> getNickNames()
           
 void setName(String name)
          Defines name of the employee.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Employee

public Employee()
Default constructor.

Method Detail

setName

public void setName(String name)
Defines name of the employee.

Parameters:
name - the given name

getName

public String getName()
Returns:
name of the employee

getId

public int getId()
Returns:
id of the

getNickNames

public List<String> getNickNames()
Returns:
list of nicknames of this employee.

addNickName

public void addNickName(String nickName)
Adds the given nickname.

Parameters:
nickName - the given nickname

getLevelRights

public Set<EmployeeLevelType> getLevelRights()
Returns:
level rights

getAddresses

public List<Address> getAddresses()
Returns:
adresses of this employee

getHistoryEvents

public Map<Date,String> getHistoryEvents()
Returns:
history events of this employee

toString

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


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