Created
August 15, 2014 21:22
-
-
Save ipolevoy/ca7674647c16188501a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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