I want to auto increment the Primary Key in Berkeley Database. I use @PrimaryKey(sequence="Id"). It worked fine. but when i enter a another data the sequence is getting wrong. As a Example when i execute database.put the primary key is "1", but next time it is "101" and next time it is "201". This is my code. are there any thing to add. I+ didn't use SequenceConfig config = new SequenceConfig(); config.setAllowCreate(true);. Do i need to use it. Please help me.
@PrimaryKey(sequence="ID")
long id; String name;
Login_Audit(String name)
{
this.name = name;
}