views:

39

answers:

1

I had created entity in google app engie datastore using JPA. I set the id as follows

@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE)
private Long s;

After i deployed my applicaiton it give identity (i.e) unique value.but igive 1001,1002,1003 ....as id.But i wnat 1,2,3,4,5 like that.how to achive this?

A: 

SEQUENCE is supported but don't think you have control over the range ... maybe it supports the sequence start point ?