@Test public void beforeSave() { TestModel m = new TestModel(); m.title = "hej"; m.save(); assertTrue(m.saved); m.saved = false; m.title = "tjena"; m.save(); assertTrue(m.saved); }
protected void beforeSave() { }
Model implements QueryResult { protected void beforeSave() { } }
Model implements QueryResult { protected void beforeSave() { }  }
Model implements QueryResult { protected void beforeSave() { }  boolean isValid(); final boolean exists(); final boolean save(); final boolean save(Transaction t); final void saveAsync(); final void saveAsync(final OnSavedCallback callback); final void delete(); final void delete(Transaction t); final void deleteAsync(); final void deleteAsync(final OnDeletedCallback callback); }
Model implements QueryResult { protected void beforeSave() { }  boolean isValid(); final boolean exists(); final boolean save(); final boolean save(Transaction t); final void saveAsync(); final void saveAsync(final OnSavedCallback callback); final void delete(); final void delete(Transaction t); final void deleteAsync(); final void deleteAsync(final OnDeletedCallback callback);  }