PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/tests_bugs/com/google/appengine/datanucleus/bugs/test/Issue73Parent.java

http://datanucleus-appengine.googlecode.com/
Java | 47 lines | 35 code | 12 blank | 0 comment | 0 complexity | 44f3fcd7768658ccfce4cceedeb0872e MD5 | raw file
 1package com.google.appengine.datanucleus.bugs.test;
 2
 3import javax.jdo.annotations.IdGeneratorStrategy;
 4import javax.jdo.annotations.PersistenceCapable;
 5import javax.jdo.annotations.Persistent;
 6import javax.jdo.annotations.PrimaryKey;
 7
 8import com.google.appengine.api.datastore.Key;
 9
10@PersistenceCapable
11public class Issue73Parent {
12  @PrimaryKey
13  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
14  Key id;
15
16  String name;
17
18  @Persistent
19  Issue73Child child1 = null;
20
21  @Persistent
22  Issue73Child child2 = null;
23
24  public String getName() {
25    return name;
26  }
27
28  public void setName(String str) {
29    this.name = str;
30  }
31
32  public void setChild1(Issue73Child child) {
33    this.child1 = child;
34  }
35
36  public void setChild2(Issue73Child child) {
37    this.child2 = child;
38  }
39
40  public Issue73Child getChild1() {
41    return child1;
42  }
43
44  public Issue73Child getChild2() {
45    return child2;
46  }
47}