FileDocCategorySizeDatePackage
Person.javaAPI DocHibernate 3.2.51460Tue Nov 01 15:44:42 GMT 2005events

Person

public class Person extends Object

Fields Summary
private Long
id
private int
age
private String
firstname
private String
lastname
private Set
emailAddresses
private Set
events
Constructors Summary
public Person()

Methods Summary
public voidaddToEvent(Event event)

        this.getEvents().add(event);
        event.getParticipants().add(this);
    
public intgetAge()

        return age;
    
public java.util.SetgetEmailAddresses()


       
        return emailAddresses;
    
protected java.util.SetgetEvents()


    // Defensive, convenience methods
       
        return events;
    
public java.lang.StringgetFirstname()

        return firstname;
    
public java.lang.LonggetId()

        return id;
    
public java.lang.StringgetLastname()

        return lastname;
    
public voidremoveFromEvent(Event event)

        this.getEvents().remove(event);
        event.getParticipants().remove(this);
    
public voidsetAge(int age)

        this.age = age;
    
public voidsetEmailAddresses(java.util.Set emailAddresses)

        this.emailAddresses = emailAddresses;
    
protected voidsetEvents(java.util.Set events)

        this.events = events;
    
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;