// aUoW.removeKeyReference(backlogItemsOfDiscussion);
// }
}
private void save(BacklogItem aBacklogItem, LevelDBUnitOfWork aUoW) {
LevelDBKey primaryKey = new LevelDBKey(PRIMARY, aBacklogItem.tenantId().id(), aBacklogItem.backlogItemId().id());
aUoW.write(primaryKey, aBacklogItem);
LevelDBKey productBacklogItems = new LevelDBKey(primaryKey, PRODUCT_BACKLOG_ITEMS, aBacklogItem.tenantId().id(), aBacklogItem.productId().id());
aUoW.updateKeyReference(productBacklogItems);
if (aBacklogItem.isScheduledForRelease()) {
LevelDBKey releaseBacklogItems = new LevelDBKey(primaryKey, RELEASE_BACKLOG_ITEMS, aBacklogItem.tenantId().id(), aBacklogItem.releaseId().id());
aUoW.updateKeyReference(releaseBacklogItems);
}
if (aBacklogItem.isCommittedToSprint()) {
LevelDBKey sprintBacklogItems = new LevelDBKey(primaryKey, SPRINT_BACKLOG_ITEMS, aBacklogItem.tenantId().id(), aBacklogItem.sprintId().id());
aUoW.updateKeyReference(sprintBacklogItems);
}
// RELEASE_BACKLOG_ITEMS