PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

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

http://datanucleus-appengine.googlecode.com/
Java | 37 lines | 15 code | 4 blank | 18 comment | 0 complexity | b6360cdc6cb2ea6b4fc7f9a8eed7e326 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 javax.jdo.annotations.DatastoreIdentity;
19import javax.jdo.annotations.IdGeneratorStrategy;
20import javax.jdo.annotations.PersistenceCapable;
21
22/**
23 * Example of a child class using datastore-identity
24 */
25@PersistenceCapable
26@DatastoreIdentity(strategy=IdGeneratorStrategy.IDENTITY)
27public class HasDatastoreIdentityChildJDO {
28  private String name;
29
30  public String getName() {
31    return name;
32  }
33
34  public void setName(String name) {
35    this.name = name;
36  }
37}