try {
UpdatableProperty<String> prop = db.getProperty("foo property", true).typeCheck(String.class).edit();
UpdatableValueType<String> vt = prop.getValueType().edit();
vt.addValue("baz", "this is baz");
vt.applyUpdates();
UpdatableChronicle ent = db.getChronicle("bt.fooent", true).edit();
Attribute<String> attr = ent.getAttribute("foo property", true).typeCheck(String.class);
attr.set("baz");
ent.setAttribute(attr);
ent.applyUpdates();
Attribute<String> a = ent.getAttribute("foo property", true).typeCheck(String.class);
assertEquals("baz", a.get());
} catch (Exception e) {
fail(e.getMessage());
}
}