~codescore-dev/codescore/version-1.0

« back to all changes in this revision

Viewing changes to src/net/codescore/dbo/auto/_Email.java

  • Committer: Adam Cornett
  • Date: 2008-05-16 02:53:17 UTC
  • mfrom: (65.1.52 codescore)
  • Revision ID: adam.cornett@gmail.com-20080516025317-douek1kxjabvb3wu
Merged changes from my branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package net.codescore.dbo.auto;
 
2
 
 
3
import net.codescore.dbo.CDO;
 
4
import net.codescore.dbo.Person;
 
5
 
 
6
/**
 
7
 * Class _Email was generated by Cayenne.
 
8
 * It is probably a good idea to avoid changing this class manually,
 
9
 * since it may be overwritten next time code is regenerated.
 
10
 * If you need to make any customizations, please use subclass.
 
11
 */
 
12
public abstract class _Email extends CDO {
 
13
 
 
14
    public static final String ADDRESS_PROPERTY = "address";
 
15
    public static final String PERSON_PROPERTY = "person";
 
16
 
 
17
    public static final String EMAILID_PK_COLUMN = "emailid";
 
18
    public static final String PERSONID_PK_COLUMN = "personid";
 
19
 
 
20
    public void setAddress(String address) {
 
21
        writeProperty("address", address);
 
22
    }
 
23
    public String getAddress() {
 
24
        return (String)readProperty("address");
 
25
    }
 
26
 
 
27
    public void setPerson(Person person) {
 
28
        setToOneTarget("person", person, true);
 
29
    }
 
30
 
 
31
    public Person getPerson() {
 
32
        return (Person)readProperty("person");
 
33
    }
 
34
 
 
35
 
 
36
}