use of example.Embedded in project elide by yahoo.
the class EmbeddedIT method setup.
@BeforeEach
public void setup() throws IOException {
dataStore.populateEntityDictionary(EntityDictionary.builder().build());
DataStoreTransaction tx = dataStore.beginTransaction();
// id 1
Embedded embedded = new Embedded();
embedded.setSegmentIds(ImmutableSet.of(3L, 4L, 5L));
tx.createObject(embedded, null);
Left left = new Left();
Right right = new Right();
left.setOne2one(right);
right.setOne2one(left);
tx.createObject(left, null);
tx.createObject(right, null);
tx.commit(null);
tx.close();
}
Aggregations