PageRenderTime 36ms CodeModel.GetById 28ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://datanucleus-appengine.googlecode.com/
Java | 34 lines | 27 code | 7 blank | 0 comment | 0 complexity | 244f1e7c3935ae8fdc3abc7d9084516f 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 Issue62Child {
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  private Issue62Parent parent; 
18 
19  public Issue62Parent getParent() {
20    return parent;
21  }
22
23  public void setParent(Issue62Parent parent) {
24    this.parent = parent;
25  }
26
27  public String getId() {
28    return id;
29  }
30
31  public void setId(String id) {
32    this.id = id;
33  } 
34}