PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://datanucleus-appengine.googlecode.com/
Java | 23 lines | 18 code | 5 blank | 0 comment | 0 complexity | 77852dcfb28a07daa8ebd1e7c334f7e9 MD5 | raw file
 1package com.google.appengine.datanucleus.test;
 2
 3import javax.persistence.Id;
 4import javax.persistence.MappedSuperclass;
 5import javax.persistence.Version;
 6
 7@MappedSuperclass
 8public class BaseVersion
 9{
10    @Id
11    Long id;
12
13    @Version
14    long version;
15
16    public BaseVersion(long id) {
17        this.id = id;
18    }
19
20    public long getVersion() {
21        return version;
22    }
23}