/tests/com/google/appengine/datanucleus/test/Issue138Parent1.java
http://datanucleus-appengine.googlecode.com/ · Java · 37 lines · 27 code · 10 blank · 0 comment · 0 complexity · ead5cc68c17b0bc04982c55e20e80c04 MD5 · raw file
- package com.google.appengine.datanucleus.test;
- import javax.jdo.annotations.IdGeneratorStrategy;
- import javax.jdo.annotations.PersistenceCapable;
- import javax.jdo.annotations.Persistent;
- import javax.jdo.annotations.PrimaryKey;
- import com.google.appengine.api.datastore.Key;
- @PersistenceCapable
- public class Issue138Parent1 {
- @PrimaryKey
- @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
- Key id;
- String name;
- @Persistent
- Issue138Child child = null;
- public String getName() {
- return name;
- }
- public void setName(String str) {
- this.name = str;
- }
- public void setChild(Issue138Child child) {
- this.child = child;
- }
- public Issue138Child getChild() {
- return child;
- }
- }