batch.insert(obj);
}
batch.apply();
// Query the records just added
HResultSet<AnnotatedExample> records = conn.executeQuery("SELECT * FROM demo2", AnnotatedExample.class);
for (AnnotatedExample rec : records) {
System.out.println("Key = " + rec.keyval);
System.out.println("f1:val1 = " + rec.val1);
System.out.println("f1:val2 = " + rec.val2);