Skip to content

Instantly share code, notes, and snippets.

@ipolevoy
Created August 15, 2014 21:22
Show Gist options
  • Save ipolevoy/ca7674647c16188501a5 to your computer and use it in GitHub Desktop.
Save ipolevoy/ca7674647c16188501a5 to your computer and use it in GitHub Desktop.
@Test
public void test(){
PlayerItemDefinition record = new PlayerItemDefinition();
record.set("id", "this is id string");
record.set("player_id", "t123");
record.saveIt();
PlayerItemDefinition definition = PlayerItemDefinition.findFirst("id = ? and player_id = ?", "this is id string", "t123");
definition.set("id", "tada");
System.out.println(definition);
definition.saveIt();
System.out.println(definition);
PlayerItemDefinition.findAll().dump();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment