Пример #1
0
  @Override
  public boolean isStoredInEntityStructure(
      AssociationKey associationKey, AssociationContext associationContext) {
    AssociationStorageType associationStorage =
        associationContext.getOptionsContext().getUnique(AssociationStorageOption.class);

    if (associationStorage == null) {
      associationStorage = provider.getDefaultAssociationStorageStrategy();
    }

    return associationKey.getAssociationKind() == AssociationKind.EMBEDDED_COLLECTION
        || associationStorage == AssociationStorageType.IN_ENTITY;
  }
Пример #2
0
 private CouchDBDatastore getDataStore() {
   return provider.getDataStore();
 }