01: package org.jpublish.module.cayenne.demo.auto;
02:
03: /** Class _Todo was generated by Cayenne.
04: * It is probably a good idea to avoid changing this class manually,
05: * since it may be overwritten next time code is regenerated.
06: * If you need to make any customizations, please use subclass.
07: */
08: public class _Todo extends org.apache.cayenne.CayenneDataObject {
09:
10: public static final String CREATED_AT_PROPERTY = "createdAt";
11: public static final String DESCRIPTION_PROPERTY = "description";
12: public static final String EXPIRES_AT_PROPERTY = "expiresAt";
13: public static final String IS_DONE_PROPERTY = "isDone";
14: public static final String TYPE_PROPERTY = "type";
15: public static final String USER_PROPERTY = "user";
16:
17: public static final String ID_PK_COLUMN = "id";
18:
19: public void setCreatedAt(java.util.Date createdAt) {
20: writeProperty("createdAt", createdAt);
21: }
22:
23: public java.util.Date getCreatedAt() {
24: return (java.util.Date) readProperty("createdAt");
25: }
26:
27: public void setDescription(String description) {
28: writeProperty("description", description);
29: }
30:
31: public String getDescription() {
32: return (String) readProperty("description");
33: }
34:
35: public void setExpiresAt(java.util.Date expiresAt) {
36: writeProperty("expiresAt", expiresAt);
37: }
38:
39: public java.util.Date getExpiresAt() {
40: return (java.util.Date) readProperty("expiresAt");
41: }
42:
43: public void setIsDone(Boolean isDone) {
44: writeProperty("isDone", isDone);
45: }
46:
47: public Boolean getIsDone() {
48: return (Boolean) readProperty("isDone");
49: }
50:
51: public void setType(org.jpublish.module.cayenne.demo.TodoType type) {
52: setToOneTarget("type", type, true);
53: }
54:
55: public org.jpublish.module.cayenne.demo.TodoType getType() {
56: return (org.jpublish.module.cayenne.demo.TodoType) readProperty("type");
57: }
58:
59: public void setUser(org.jpublish.module.cayenne.demo.User user) {
60: setToOneTarget("user", user, true);
61: }
62:
63: public org.jpublish.module.cayenne.demo.User getUser() {
64: return (org.jpublish.module.cayenne.demo.User) readProperty("user");
65: }
66:
67: }
|