Finished most of the basic implementation. Now on to magical table creation.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1913 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -20,6 +20,8 @@ public class TestRepository extends DepotRepository
|
||||
TestRepository repo = new TestRepository(
|
||||
new StaticConnectionProvider("depot.properties"));
|
||||
|
||||
repo.delete(TestRecord.class, 0);
|
||||
|
||||
TestRecord record = new TestRecord();
|
||||
record.name = "Elvis";
|
||||
record.age = 99;
|
||||
@@ -27,7 +29,11 @@ public class TestRepository extends DepotRepository
|
||||
record.lastModified = new Timestamp(System.currentTimeMillis());
|
||||
|
||||
repo.insert(record);
|
||||
System.out.println(repo.load(TestRecord.class, record.recordId));
|
||||
|
||||
record.age = 25;
|
||||
record.name = "Bob";
|
||||
repo.update(record, "age");
|
||||
System.out.println(repo.load(TestRecord.class, record.recordId));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user