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

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

http://datanucleus-appengine.googlecode.com/
Java | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | 288036db5e185c189b97955927591bb7 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
 8import com.google.appengine.api.datastore.Key;
 9
10@PersistenceCapable
11public class Issue179Child {
12  @PrimaryKey
13  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
14  Key id;
15
16  String name;
17
18  public String getName() {
19    return name;
20  }
21
22  public void setName(String str) {
23    this.name = str;
24  }
25}