/tests/com/google/appengine/datanucleus/test/Issue138Parent1.java
Java | 37 lines | 27 code | 10 blank | 0 comment | 0 complexity | ead5cc68c17b0bc04982c55e20e80c04 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 Issue138Parent1 { 12 @PrimaryKey 13 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 14 Key id; 15 16 String name; 17 18 @Persistent 19 Issue138Child child = null; 20 21 public String getName() { 22 return name; 23 } 24 25 public void setName(String str) { 26 this.name = str; 27 } 28 29 public void setChild(Issue138Child child) { 30 this.child = child; 31 } 32 33 public Issue138Child getChild() { 34 return child; 35 } 36 37}