could I change sequcence id ?
allocating small value may not be effect.
or something other ways ?
javax.jdo.datastore.Sequence seq = em.unwrap(javax.jdo.PersistenceManager.class).getSequence("MyEntity$identity"); long currentValue = seq.currentValue(); // I would like to change currentValue (because it is too big value) seq.allocate(smallValue); // allocating to small value is not effect
MyEntity is defined with JPA
@Entity public class MyEntity { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private Long id; }