Package info.archinnov.achilles.test.integration.entity

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithCompositePartitionKey$EmbeddedKey


        .sliceQuery(ClusteredEntityWithCompositePartitionKey.class)
                .forIteration()
                .withPartitionComponents(id, "type").iterator();

    iter.hasNext();
    ClusteredEntityWithCompositePartitionKey clusteredEntity = iter.next();

    // Check for update
    clusteredEntity.setValue("dirty");
    manager.update(clusteredEntity);

    ClusteredEntityWithCompositePartitionKey check = manager.find(ClusteredEntityWithCompositePartitionKey.class,
        clusteredEntity.getId());
    assertThat(check.getValue()).isEqualTo("dirty");

    // Check for refresh
    check.setValue("dirty_again");
    manager.update(check);

    manager.refresh(clusteredEntity);
    assertThat(clusteredEntity.getValue()).isEqualTo("dirty_again");
View Full Code Here


      insertClusteredEntity(id, 10 + i, "value" + i);
    }
  }

  private void insertClusteredEntity(Long id, Integer index, String clusteredValue) {
    ClusteredEntityWithCompositePartitionKey entity = new ClusteredEntityWithCompositePartitionKey(id, "type",
        index, clusteredValue);
    manager.insert(entity);
  }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithCompositePartitionKey$EmbeddedKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.