PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/tests_bugs/com/google/appengine/datanucleus/bugs/test/Issue167Child.java

http://datanucleus-appengine.googlecode.com/
Java | 52 lines | 28 code | 9 blank | 15 comment | 0 complexity | eeedf5094b27c69375392eae836d211b 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.bugs.test;
17
18import javax.persistence.Entity;
19import javax.persistence.GeneratedValue;
20import javax.persistence.GenerationType;
21import javax.persistence.Id;
22
23import com.google.appengine.api.datastore.Key;
24
25@Entity
26public class Issue167Child {
27  @Id
28  @GeneratedValue(strategy = GenerationType.IDENTITY)
29  private Key key;
30
31  private String data;
32
33  public Issue167Child(String data) {
34    this.data = data;
35  }
36
37  public void setData(String data) {
38    this.data = data;
39  }
40
41  public String getData() {
42    return data;
43  }
44
45  public void setKey(Key key) {
46    this.key = key;
47  }
48
49  public Key getKey() {
50    return key;
51  }
52}