001    package net.codescore.dbo.auto;
002    
003    import java.util.Date;
004    
005    import net.codescore.dbo.CDO;
006    import net.codescore.dbo.Person;
007    import net.codescore.dbo.Problem;
008    
009    /**
010     * Class _Comment was generated by Cayenne.
011     * It is probably a good idea to avoid changing this class manually,
012     * since it may be overwritten next time code is regenerated.
013     * If you need to make any customizations, please use subclass.
014     */
015    public abstract class _Comment extends CDO {
016    
017        public static final String MESSAGE_PROPERTY = "message";
018        public static final String TSTAMP_PROPERTY = "tstamp";
019        public static final String PERSON_PROPERTY = "person";
020        public static final String PROBLEM_PROPERTY = "problem";
021    
022        public static final String COMID_PK_COLUMN = "comid";
023    
024        public void setMessage(String message) {
025            writeProperty("message", message);
026        }
027        public String getMessage() {
028            return (String)readProperty("message");
029        }
030    
031        public void setTstamp(Date tstamp) {
032            writeProperty("tstamp", tstamp);
033        }
034        public Date getTstamp() {
035            return (Date)readProperty("tstamp");
036        }
037    
038        public void setPerson(Person person) {
039            setToOneTarget("person", person, true);
040        }
041    
042        public Person getPerson() {
043            return (Person)readProperty("person");
044        }
045    
046    
047        public void setProblem(Problem problem) {
048            setToOneTarget("problem", problem, true);
049        }
050    
051        public Problem getProblem() {
052            return (Problem)readProperty("problem");
053        }
054    
055    
056    }