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:
mdb
2006-09-19 20:29:58 +00:00
parent d6b44eefd9
commit 0c1e0c6966
3 changed files with 319 additions and 83 deletions
@@ -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));
}