Package info.archinnov.achilles.internal.metadata.holder

Examples of info.archinnov.achilles.internal.metadata.holder.IndexProperties


            propertyMeta = parseId(context);
        } else {
            propertyMeta = parseSimpleProperty(context);
            String indexName = getIndexName(field);
            if (indexName != null) {
                propertyMeta.setIndexProperties(new IndexProperties(indexName, propertyMeta.getCQL3ColumnName()));
            }
        }
        context.getPropertyMetas().put(context.getCurrentPropertyName(), propertyMeta);

        validator.validateNoDuplicateCQLName(context);
View Full Code Here


    @Test
    public void should_update_table_with_new_indexed_simple_field() throws Exception {
        // Given
        PropertyMeta idMeta = valueClass(Long.class).type(ID).cqlColumnName("id").build();
        PropertyMeta longColPM = valueClass(Long.class).type(SIMPLE).cqlColumnName("longcol").build();
        longColPM.setIndexProperties(new IndexProperties("long_index", "longCol"));

        when(meta.getAllMetasExceptId()).thenReturn(asList(longColPM));
        when(meta.getIdMeta()).thenReturn(idMeta);
        when(tableMeta.getColumns()).thenReturn(Arrays.<ColumnMetadata>asList());
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.internal.metadata.holder.IndexProperties

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.