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

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

http://datanucleus-appengine.googlecode.com/
Java | 36 lines | 28 code | 8 blank | 0 comment | 0 complexity | 50df484ba13a08e7b20f55aa02aafcf0 MD5 | raw file
 1package com.google.appengine.datanucleus.test;
 2
 3import javax.jdo.annotations.IdGeneratorStrategy;
 4import javax.jdo.annotations.PersistenceCapable;
 5import javax.jdo.annotations.Persistent;
 6import javax.jdo.annotations.PrimaryKey;
 7
 8@PersistenceCapable
 9public class Issue62Parent {
10  @PrimaryKey
11  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
12  private Long id;
13 
14  @Persistent
15  private Issue62Child child; 
16  
17  public Issue62Parent(Issue62Child child) {
18    this.child = child;
19  }
20
21  public Long getId() {
22    return id;
23  }
24
25  public void setId(Long id) {
26    this.id = id;
27  }
28
29  public Issue62Child getChild() {
30    return child;
31  }
32
33  public void setChild(Issue62Child child) {
34    this.child = child;
35  }
36}