mirror of https://github.com/apache/openjpa.git
Misc test update.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1003292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c7a08227a3
commit
1f64b37ec5
|
@ -22,6 +22,7 @@ import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.GenerationType;
|
import javax.persistence.GenerationType;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Version;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class AutoIncrementEntity {
|
public class AutoIncrementEntity {
|
||||||
|
@ -29,6 +30,9 @@ public class AutoIncrementEntity {
|
||||||
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
@GeneratedValue(strategy=GenerationType.IDENTITY)
|
||||||
public int id;
|
public int id;
|
||||||
|
|
||||||
|
@Version
|
||||||
|
int version;
|
||||||
|
|
||||||
public String somethingElse;
|
public String somethingElse;
|
||||||
|
|
||||||
public int getId(){
|
public int getId(){
|
||||||
|
|
Loading…
Reference in New Issue