Examples of partitionKeyColumn()


Examples of org.springframework.cassandra.core.keyspace.CreateTableSpecification.partitionKeyColumn()

            @Override
            public void doWithPersistentProperty(CassandraPersistentProperty pkProp) {

              if (pkProp.isPartitionKeyColumn()) {
                spec.partitionKeyColumn(pkProp.getColumnName(), pkProp.getDataType());
              } else { // it's a cluster column
                spec.clusteredKeyColumn(pkProp.getColumnName(), pkProp.getDataType(), pkProp.getPrimaryKeyOrdering());
              }
            }
          });
View Full Code Here

Examples of org.springframework.cassandra.core.keyspace.CreateTableSpecification.partitionKeyColumn()

          });

        } else {

          if (prop.isIdProperty() || prop.isPartitionKeyColumn()) {
            spec.partitionKeyColumn(prop.getColumnName(), prop.getDataType());
          } else if (prop.isClusterKeyColumn()) {
            spec.clusteredKeyColumn(prop.getColumnName(), prop.getDataType());
          } else {
            spec.column(prop.getColumnName(), prop.getDataType());
          }
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.