Inserts a new entity into the database. This method does not alter the entity: to update it after an insert use select.
Test test = new Test(); test.a = 55; test.b = "Test"; database.insert(test);
See Implementation
Inserts a new entity into the database. This method does not alter the entity: to update it after an insert use select.