/tests_bugs/com/google/appengine/datanucleus/bugs/test/Issue73Parent.java
http://datanucleus-appengine.googlecode.com/ · Java · 47 lines · 35 code · 12 blank · 0 comment · 0 complexity · 44f3fcd7768658ccfce4cceedeb0872e MD5 · raw file
- package com.google.appengine.datanucleus.bugs.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 Issue73Parent {
- @PrimaryKey
- @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
- Key id;
- String name;
- @Persistent
- Issue73Child child1 = null;
- @Persistent
- Issue73Child child2 = null;
- public String getName() {
- return name;
- }
- public void setName(String str) {
- this.name = str;
- }
- public void setChild1(Issue73Child child) {
- this.child1 = child;
- }
- public void setChild2(Issue73Child child) {
- this.child2 = child;
- }
- public Issue73Child getChild1() {
- return child1;
- }
- public Issue73Child getChild2() {
- return child2;
- }
- }