Package org.springframework.data.cassandra.mapping

Examples of org.springframework.data.cassandra.mapping.BasicCassandraMappingContext


   * @throws ClassNotFoundException
   */
  @Bean
  public CassandraMappingContext cassandraMapping() throws ClassNotFoundException {

    BasicCassandraMappingContext bean = new BasicCassandraMappingContext();
    bean.setInitialEntitySet(CassandraEntityClassScanner.scan(getEntityBasePackages()));
    bean.setBeanClassLoader(beanClassLoader);

    return bean;
  }
View Full Code Here


  CassandraMappingContext mappingContext;

  @Before
  public void init() {

    mappingContext = new BasicCassandraMappingContext();

  }
View Full Code Here

  @Before
  public void setUp() {

    when(operations.getConverter()).thenReturn(converter);

    this.converter = new MappingCassandraConverter(new BasicCassandraMappingContext());
  }
View Full Code Here

  /**
   * Creates a new {@link MappingCassandraConverter} with a {@link BasicCassandraMappingContext}.
   */
  public MappingCassandraConverter() {
    this(new BasicCassandraMappingContext());
  }
View Full Code Here

  CassandraPersistentEntity<?> thing;
  CassandraPersistentEntity<?> key;

  @Before
  public void setup() {
    context = new BasicCassandraMappingContext();
    thing = context.getPersistentEntity(ClassTypeInformation.from(Thing.class));
    key = context.getPersistentEntity(ClassTypeInformation.from(Key.class));
  }
View Full Code Here

  String pkg = getClass().getPackage().getName();

  @Before
  public void before() throws ClassNotFoundException {

    mapping = new BasicCassandraMappingContext();
    mapping.setInitialEntitySet(CassandraEntityClassScanner.scan(pkg + ".first", pkg + ".second"));

    mapping.initialize();
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.cassandra.mapping.BasicCassandraMappingContext

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.