PageRenderTime 20ms CodeModel.GetById 13ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/tests/com/google/appengine/datanucleus/test/Issue165Child.java

http://datanucleus-appengine.googlecode.com/
Java | 37 lines | 29 code | 8 blank | 0 comment | 0 complexity | bdb0c9ab4c281beed3e92ce9acefc789 MD5 | raw file
 1package com.google.appengine.datanucleus.test;
 2
 3import javax.jdo.annotations.Extension;
 4import javax.jdo.annotations.IdGeneratorStrategy;
 5import javax.jdo.annotations.PersistenceCapable;
 6import javax.jdo.annotations.Persistent;
 7import javax.jdo.annotations.PrimaryKey;
 8
 9@PersistenceCapable
10public class Issue165Child {
11  @PrimaryKey
12  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
13  @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
14  private String id;
15
16  @Persistent(mappedBy = "child")
17  Issue165Parent parent;
18  
19  @Persistent
20  String aString;
21
22  public String getId() {
23    return id;
24  }
25
26  public void setAString(String str) {
27    aString = str;
28  }
29
30  public void setParent(Issue165Parent parent) {
31    this.parent = parent;
32  }
33
34  public Issue165Parent getParent() {
35    return parent;
36  }
37}