Examples of ValuelessEntity


Examples of info.archinnov.achilles.test.integration.entity.ValuelessEntity

        batch.startBatch();

        RegularStatement statement = QueryBuilder.insertInto(ValuelessEntity.TABLE_NAME).value("id", 234L);
        batch.batchNativeStatement(statement);

        ValuelessEntity entity = new ValuelessEntity(123L);
        batch.insert(entity);

        batch.endBatch();
    }
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.ValuelessEntity

  private PersistenceManager manager = resource.getPersistenceManager();

  @Test
  public void should_persist_and_find() throws Exception {
    Long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    ValuelessEntity entity = new ValuelessEntity(id);

    manager.insert(entity);

    ValuelessEntity found = manager.find(ValuelessEntity.class, id);

    assertThat(found).isNotNull();
  }
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.ValuelessEntity

  }

  @Test
  public void should_persist_and_get_proxy() throws Exception {
    Long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    ValuelessEntity entity = new ValuelessEntity(id);

    manager.insert(entity);

    ValuelessEntity found = manager.getProxy(ValuelessEntity.class, id);

    assertThat(found).isNotNull();
  }
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.ValuelessEntity

  }

  @Test
  public void should_persist_with_ttl() throws Exception {
    Long id = RandomUtils.nextLong(0,Long.MAX_VALUE);
    ValuelessEntity entity = new ValuelessEntity(id);

    manager.insert(entity, OptionsBuilder.withTtl(1));

    Thread.sleep(1000);
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.