PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 39 lines | 18 code | 3 blank | 18 comment | 0 complexity | ef19ccd4fe2091444edd003a1de6b1ad MD5 | raw file
 1/**********************************************************************
 2Copyright (c) 2009 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.IdGeneratorStrategy;
19import javax.jdo.annotations.IdentityType;
20import javax.jdo.annotations.PersistenceCapable;
21import javax.jdo.annotations.Persistent;
22import javax.jdo.annotations.PrimaryKey;
23import javax.jdo.annotations.Version;
24import javax.jdo.annotations.VersionStrategy;
25
26/**
27 * @author Max Ross <maxr@google.com>
28 */
29@PersistenceCapable(identityType = IdentityType.APPLICATION)
30@Version(strategy = VersionStrategy.VERSION_NUMBER, column = "myversioncolumn")
31public class HasVersionNoFieldJDO {
32  @PrimaryKey
33  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
34  private Long id;
35
36  public Long getId() {
37    return id;
38  }
39}