FileDocCategorySizeDatePackage
Person.javaAPI DocHibernate 3.2.52978Wed Jun 07 10:30:02 BST 2006org.hibernate.test.jpa.fetch

Person

public class Person extends Object implements Serializable
Copied over from annotations test suite...
author
Emmanuel Bernard

Fields Summary
private Long
id
private String
firstName
private String
lastName
private String
companyName
private Collection
stays
private Collection
oldStays
private Collection
veryOldStays
Constructors Summary
public Person()

	
public Person(String firstName, String lastName, String companyName)

		this.firstName = firstName;
		this.lastName = lastName;
		this.companyName = companyName;
	
Methods Summary
public voidaddOldStay(java.util.Date startDate, java.util.Date endDate, java.lang.String vessel, java.lang.String authoriser, java.lang.String comments)

		Stay stay = new Stay( this, startDate, endDate, vessel, authoriser, comments );
		addOldStay( stay );
	
public voidaddOldStay(Stay stay)

		Collection stays = getOldStays();
		if ( stays == null ) {
			stays = new ArrayList();
		}
		stays.add( stay );

		this.oldStays = stays;
	
public voidaddStay(java.util.Date startDate, java.util.Date endDate, java.lang.String vessel, java.lang.String authoriser, java.lang.String comments)

		Stay stay = new Stay( this, startDate, endDate, vessel, authoriser, comments );
		addStay( stay );
	
public voidaddStay(Stay stay)

		Collection stays = getStays();
		if ( stays == null ) {
			stays = new ArrayList();
		}
		stays.add( stay );

		this.stays = stays;
	
public voidaddVeryOldStay(java.util.Date startDate, java.util.Date endDate, java.lang.String vessel, java.lang.String authoriser, java.lang.String comments)

		Stay stay = new Stay( this, startDate, endDate, vessel, authoriser, comments );
		addVeryOldStay( stay );
	
public voidaddVeryOldStay(Stay stay)

		Collection stays = getVeryOldStays();
		if ( stays == null ) {
			stays = new ArrayList();
		}
		stays.add( stay );

		this.veryOldStays = stays;
	
public java.lang.StringgetCompanyName()

		return companyName;
	
public java.lang.StringgetFirstName()

		return firstName;
	
public java.lang.LonggetId()

		return id;
	
public java.lang.StringgetLastName()

		return lastName;
	
public java.util.CollectiongetOldStays()

		return oldStays;
	
public java.util.CollectiongetStays()

		return stays;
	
public java.util.CollectiongetVeryOldStays()

		return veryOldStays;
	
public voidsetCompanyName(java.lang.String companyName)

		this.companyName = companyName;
	
public voidsetFirstName(java.lang.String firstName)

		this.firstName = firstName;
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetLastName(java.lang.String lastName)

		this.lastName = lastName;
	
public voidsetOldStays(java.util.Collection oldStays)

		this.oldStays = oldStays;
	
public voidsetStays(java.util.Collection stays)

		this.stays = stays;
	
public voidsetVeryOldStays(java.util.Collection veryOldStays)

		this.veryOldStays = veryOldStays;