01: package org.jpublish.module.cayenne.demo.auto;
02:
03: import java.util.List;
04:
05: /** Class _User was generated by Cayenne.
06: * It is probably a good idea to avoid changing this class manually,
07: * since it may be overwritten next time code is regenerated.
08: * If you need to make any customizations, please use subclass.
09: */
10: public class _User extends org.apache.cayenne.CayenneDataObject {
11:
12: public static final String EMAIL_PROPERTY = "email";
13: public static final String NAME_PROPERTY = "name";
14: public static final String TODOS_PROPERTY = "todos";
15:
16: public static final String ID_PK_COLUMN = "id";
17:
18: public void setEmail(String email) {
19: writeProperty("email", email);
20: }
21:
22: public String getEmail() {
23: return (String) readProperty("email");
24: }
25:
26: public void setName(String name) {
27: writeProperty("name", name);
28: }
29:
30: public String getName() {
31: return (String) readProperty("name");
32: }
33:
34: public void addToTodos(org.jpublish.module.cayenne.demo.Todo obj) {
35: addToManyTarget("todos", obj, true);
36: }
37:
38: public void removeFromTodos(
39: org.jpublish.module.cayenne.demo.Todo obj) {
40: removeToManyTarget("todos", obj, true);
41: }
42:
43: public List getTodos() {
44: return (List) readProperty("todos");
45: }
46:
47: }
|