org.hibernate.test.annotations.manytomany
Class Employee

java.lang.Object
  extended by org.hibernate.test.annotations.manytomany.Employee
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Contractor

@Entity
public class Employee
extends Object
implements Serializable

Employee in an Employer-Employee relationship

See Also:
Serialized Form

Constructor Summary
Employee()
           
 
Method Summary
 ContactInfo getContactInfo()
           
 Collection<Employer> getEmployers()
           
 Integer getId()
           
 JobInfo getJobInfo()
           
 String getName()
           
 void setContactInfo(ContactInfo contactInfo)
           
 void setEmployers(Collection<Employer> employers)
           
 void setId(Integer integer)
           
 void setJobInfo(JobInfo jobInfo)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Employee

public Employee()
Method Detail

getContactInfo

public ContactInfo getContactInfo()

setContactInfo

public void setContactInfo(ContactInfo contactInfo)

getJobInfo

public JobInfo getJobInfo()

setJobInfo

public void setJobInfo(JobInfo jobInfo)

getName

public String getName()

setName

public void setName(String name)

getId

public Integer getId()

setId

public void setId(Integer integer)

getEmployers

public Collection<Employer> getEmployers()

setEmployers

public void setEmployers(Collection<Employer> employers)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.