I have this method which will remove all rows from a table but I also want it to reset the autoincrement so that when a new row is added it will start again. The SQL stateme
I was trying too hard.
Finally, I got this answer code...
Book.deleteAll(Book.class); book=new Book(user, pass); book.setId(Long.valueOf(book.listAll(Book.class).size())); book.save();
this code work like delete and recreating the table.and reset id.
good luck