Examples of EmbeddedKey


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

  @Test
  public void should_persist_and_find() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Integer index = 11;
    compoundKey = new EmbeddedKey(id, "type", index);

    entity = new ClusteredEntityWithCompositePartitionKey(id, "type", index, "value");

    manager.insert(entity);
View Full Code Here

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

  @Test
  public void should_persist_and_get_proxy() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Integer index = 11;
    compoundKey = new EmbeddedKey(id, "type", index);

    entity = new ClusteredEntityWithCompositePartitionKey(id, "type", index, "clustered_value");

    manager.insert(entity);
View Full Code Here

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

  @Test
  public void should_update_modifications() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Integer index = 11;
    compoundKey = new EmbeddedKey(id, "type", index);

    entity = new ClusteredEntityWithCompositePartitionKey(id, "type", index, "clustered_value");

    entity = manager.insert(entity);
View Full Code Here

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

  @Test
  public void should_delete() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Integer index = 11;
    compoundKey = new EmbeddedKey(id, "type", index);

    entity = new ClusteredEntityWithCompositePartitionKey(id, "type", index, "clustered_value");

    entity = manager.insert(entity);
View Full Code Here

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

  @Test
  public void should_delete_by_id() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Integer index = 11;
    compoundKey = new EmbeddedKey(id, "type", index);

    entity = new ClusteredEntityWithCompositePartitionKey(id, "type", index, "clustered_value");

    entity = manager.insert(entity);
View Full Code Here

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

  @Test
  public void should_refresh() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    Integer index = 11;
    compoundKey = new EmbeddedKey(id, "type", index);

    entity = new ClusteredEntityWithCompositePartitionKey(id, "type", index, "clustered_value");

    entity = manager.insert(entity);
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.EntityWithCompositePartitionKey.EmbeddedKey

    Long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    EntityWithCompositePartitionKey entity = new EntityWithCompositePartitionKey(id, "type", "value");

    manager.insert(entity);

    EntityWithCompositePartitionKey found = manager.find(EntityWithCompositePartitionKey.class, new EmbeddedKey(id,
        "type"));

    assertThat(found).isNotNull();
    assertThat(found).isInstanceOf(Factory.class);
    assertThat(found.getId().getId()).isEqualTo(id);
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.EntityWithCompositePartitionKey.EmbeddedKey

  }

  @Test
  public void should_persist_and_get_proxy() throws Exception {
    long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    EmbeddedKey compositeRowKey = new EmbeddedKey(id, "type");

    EntityWithCompositePartitionKey entity = new EntityWithCompositePartitionKey(id, "type", "clustered_value");

    manager.insert(entity);
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.EntityWithCompositePartitionKey.EmbeddedKey

    entity = manager.insert(entity);

    entity.setValue("value2");
    manager.update(entity);

    EntityWithCompositePartitionKey found = manager.find(EntityWithCompositePartitionKey.class, new EmbeddedKey(id,
        "type"));
    assertThat(found.getValue()).isEqualTo("value2");
  }
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.EntityWithCompositePartitionKey.EmbeddedKey

    entity = manager.insert(entity);

    manager.delete(entity);

    EntityWithCompositePartitionKey found = manager.find(EntityWithCompositePartitionKey.class, new EmbeddedKey(id,
        "type"));
    assertThat(found).isNull();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.