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

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

http://datanucleus-appengine.googlecode.com/
Java | 52 lines | 28 code | 9 blank | 15 comment | 0 complexity | 22d2df27237c370eed235b50baaacb21 MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2011 Google Inc.
 3
 4Licensed under the Apache License, Version 2.0 (the "License");
 5you may not use this file except in compliance with the License.
 6You may obtain a copy of the License at
 7
 8http://www.apache.org/licenses/LICENSE-2.0
 9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15**********************************************************************/
16package com.google.appengine.datanucleus.test;
17
18import java.util.List;
19
20import javax.jdo.annotations.IdGeneratorStrategy;
21import javax.jdo.annotations.IdentityType;
22import javax.jdo.annotations.PersistenceCapable;
23import javax.jdo.annotations.Persistent;
24import javax.jdo.annotations.PrimaryKey;
25
26import com.google.appengine.api.datastore.Key;
27
28@PersistenceCapable(identityType = IdentityType.APPLICATION)
29public class Issue125Entity {
30   @PrimaryKey
31   @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
32   private Key key;
33
34   @Persistent
35   private List<Issue125Entity> children;
36
37   public Key getKey() {
38       return key;
39   }
40
41   public void setKey(Key key) {
42       this.key = key;
43   }
44
45   public List<Issue125Entity> getChildren() {
46       return children;
47   }
48
49   public void setChildren(List<Issue125Entity> children) {
50       this.children = children;
51   }
52}