Package info.archinnov.achilles.type

Examples of info.archinnov.achilles.type.InsertStrategy


        //Given
        ConfigMap params = new ConfigMap();
        params.put(GLOBAL_INSERT_STRATEGY, ALL_FIELDS);

        //When
        final InsertStrategy strategy = extractor.initInsertStrategy(params);

        //Then
        assertThat(strategy).isEqualTo(ALL_FIELDS);
    }
View Full Code Here


        validateEntityAndGetObjectMapper(context);

        String keyspaceName = context.getKeyspaceName();
        String tableName = context.getTableName();
        String tableComment = introspector.inferTableComment(entityClass, "Create table for entity \"" + entityClass.getName() + "\"");
        final InsertStrategy insertStrategy = introspector.getInsertStrategy(entityClass, context);


        PropertyMeta idMeta = null;
        List<Field> inheritedFields = introspector.getInheritedPrivateFields(entityClass);
        for (Field field : inheritedFields) {
View Full Code Here

    public void should_get_insert_strategy_on_entity() throws Exception {
        //Given
        when(parsingContext.getDefaultInsertStrategy()).thenReturn(ALL_FIELDS);

        //When
        final InsertStrategy insertStrategy = introspector.getInsertStrategy(ComplexBean.class, parsingContext);

        //Then
        assertThat(insertStrategy).isEqualTo(NOT_NULL_FIELDS);
    }
View Full Code Here

    public void should_get_default_insert_strategy_on_entity() throws Exception {
        //Given
        when(parsingContext.getDefaultInsertStrategy()).thenReturn(ALL_FIELDS);

        //When
        final InsertStrategy insertStrategy = introspector.getInsertStrategy(Bean.class, parsingContext);

        //Then
        assertThat(insertStrategy).isEqualTo(ALL_FIELDS);
    }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.type.InsertStrategy

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.