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:
java.io.Serializable

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

A JPA 2.0 Entity.

Author:
Florent Benoit
See Also:
Serialized Form

Constructor Summary
Employee()
          Default constructor.
 
Method Summary
 void addNickName(java.lang.String nickName)
          Adds the given nickname.
 java.util.List<Address> getAddresses()
           
 java.util.Map<java.util.Date,java.lang.String> getHistoryEvents()
           
 int getId()
           
 java.util.Set<EmployeeLevelType> getLevelRights()
           
 java.lang.String getName()
           
 java.util.List<java.lang.String> getNickNames()
           
 void setName(java.lang.String name)
          Defines name of the employee.
 java.lang.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(java.lang.String name)
Defines name of the employee.

Parameters:
name - the given name

getName

public java.lang.String getName()
Returns:
name of the employee

getId

public int getId()
Returns:
id of the

getNickNames

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

addNickName

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

Parameters:
nickName - the given nickname

getLevelRights

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

getAddresses

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

getHistoryEvents

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

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.