PageRenderTime 57ms CodeModel.GetById 48ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 37 lines | 29 code | 8 blank | 0 comment | 0 complexity | 5ba73d09b33f35b8ccee1caa7f02da30 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 Issue165Child2 {
11  @PrimaryKey
12  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
13  @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
14  private String id;
15
16  @Persistent
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}