Examples of ClusteredOnlyStaticColumnsKey


Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithOnlyStaticColumns.ClusteredOnlyStaticColumnsKey

    /////////////////////// ONLY STATIC SIMPLE COLUMNS ////////////////////////////////
    @Test
    public void should_query_all_static_columns() throws Exception {
        Long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
        ClusteredEntityWithOnlyStaticColumns location = new ClusteredEntityWithOnlyStaticColumns(new ClusteredOnlyStaticColumnsKey(partitionKey, "location"), "Paris", "rue de la paix");

        manager.insert(location);

        List<ClusteredEntityWithOnlyStaticColumns> found = manager.sliceQuery(ClusteredEntityWithOnlyStaticColumns.class)
                .forSelect()
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithOnlyStaticColumns.ClusteredOnlyStaticColumnsKey

    @Test
    public void should_update_all_static_columns() throws Exception {
        //Given
        Long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
        ClusteredEntityWithOnlyStaticColumns location = new ClusteredEntityWithOnlyStaticColumns(new ClusteredOnlyStaticColumnsKey(partitionKey, "location"), "Paris", "rue de la paix");

        final ClusteredEntityWithOnlyStaticColumns managed = manager.insert(location);

        //When
        managed.setCity("Lyon");
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithOnlyStaticColumns.ClusteredOnlyStaticColumnsKey

    @Test
    public void should_lazy_load_all_static_columns() throws Exception {
        //Given
        Long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
        ClusteredEntityWithOnlyStaticColumns location = new ClusteredEntityWithOnlyStaticColumns(new ClusteredOnlyStaticColumnsKey(partitionKey, "location"), "Paris", "rue de la paix");

        manager.insert(location);

        //When
        ClusteredEntityWithOnlyStaticColumns proxy = manager.getProxy(ClusteredEntityWithOnlyStaticColumns.class, location.getId());
View Full Code Here

Examples of info.archinnov.achilles.test.integration.entity.ClusteredEntityWithOnlyStaticColumns.ClusteredOnlyStaticColumnsKey

    @Test
    public void should_delete_all_static_columns() throws Exception {
        //Given
        Long partitionKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
        ClusteredEntityWithOnlyStaticColumns location = new ClusteredEntityWithOnlyStaticColumns(new ClusteredOnlyStaticColumnsKey(partitionKey, "location"), "Paris", "rue de la paix");

        final ClusteredEntityWithOnlyStaticColumns managed = manager.insert(location);

        //When
        manager.delete(managed);
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.