Closed tmsbn closed 10 years ago
I have read the documentation but I am a little confused about how to clear the current date in the table. Currently I am doing this
ModelList person=ModelList.from(Query.all(Person.class).get()) person.deleteAll()
Is this the best way?
Yes, this is the best way if you want att the callbacks to be called on Person.class
You could also perform the delete manually via new SqlStatement("delete from Persons")
new SqlStatement("delete from Persons")
I have read the documentation but I am a little confused about how to clear the current date in the table. Currently I am doing this
ModelList person=ModelList.from(Query.all(Person.class).get())
person.deleteAll()
Is this the best way?