FileDocCategorySizeDatePackage
PersonBeanEJB3.javaAPI DocExample1269Wed May 03 17:09:04 BST 2006None

Person

public class Person extends Object implements Serializable

Fields Summary
private Long
id
private String
mName
private Collection
mAddresses
Constructors Summary
public Person()

Methods Summary
public voidaddAddress(Address a)

        mAddresses.add(a);
    
public java.util.CollectiongetAddresses()

        return mAddresses;
    
public java.lang.LonggetId()

        return id;
    
public java.lang.StringgetName()


    // Persistent name property
        return mName; 
public voidsetAddresses(java.util.Collection addrs)

        mAddresses = addrs;
    
public voidsetId(java.lang.Long id)

        this.id = id;
    
public voidsetName(java.lang.String name)

 mName = name;