To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/6aea93ee-08c8-4782-8495-d1536314e074%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spring-data-cassandra/k2kkod-ZOkI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe53LRMW_qHVxJziWy41ECmu0N9wRrwFHvTexmGMKBrL6UA%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/6aea93ee-08c8-4782-8495-d1536314e074%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/4cc4dfe5-106c-49d4-a8eb-2cb36eb89960%40googlegroups.com.
Try removing the @Column annotation from the PK.
@PrimaryKey(value = "id")
@Column(value = "id")
private String id;
To unsubscribe from this group and all its topics, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/6aea93ee-08c8-4782-8495-d1536314e074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe53LRMW_qHVxJziWy41ECmu0N9wRrwFHvTexmGMKBrL6UA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to
spring-dat...@googlegroups.com.
Visit this group at
http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/4cc4dfe5-106c-49d4-a8eb-2cb36eb89960%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe51ZQ%2BW9Ay47QAnfwjJRbpAqrhpNy%2BNAQ6kOrSh1V8%3DqKw%40mail.gmail.com.
The @Column annotation is not needed since specifying the field as @PrimaryKey already designates is as a column.
Additionally, @Column is really only required if you need to change the column name mapping b/c the POJO field name is not the column name.
Example of a noop, b/c the column name is “id” and the field name is “id”
@Column(value = "id")
private String id;
Proper use example would be:
@Column(value=”id”)
private String uniqueId;
Regarding version of SDC*…Yes, that is a problem. You should be using 1.0.0.RC1
Thanks,
Dave
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe52gFqO7%2BrqmaecmJ3waCMHUuhUwb7n2m6zfdebe2SjFfw%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/6aea93ee-08c8-4782-8495-d1536314e074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe53LRMW_qHVxJziWy41ECmu0N9wRrwFHvTexmGMKBrL6UA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/4cc4dfe5-106c-49d4-a8eb-2cb36eb89960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe52gFqO7%2BrqmaecmJ3waCMHUuhUwb7n2m6zfdebe2SjFfw%40mail.gmail.com.
How do I supposed to get the bean from application context ?
ApplicationContext ctx = new AnnotationConfigApplicationContext("conf");
CassandraTemplate cassandraTemplate = (CassandraTemplate) ctx.getBean(?);
Subscriber subscriber = new Subscriber();
.
.
.
cassandraTemplate.insert(subscriber);
Moreover AbstractCassandraConfiguration has the following method
@Bean
public CassandraAdminOperations cassandraTemplate() throws Exception {
return new CassandraAdminTemplate(session().getObject(), cassandraConverter());
}
which returns a CassandraAdminTemplate but not CassandraTemplate
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/4cc4dfe5-106c-49d4-a8eb-2cb36eb89960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe52gFqO7%2BrqmaecmJ3waCMHUuhUwb7n2m6zfdebe2SjFfw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/5ca1e1a5-c848-45ee-965a-b98faec60078%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsubscri...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/CAHZoe52gFqO7%2BrqmaecmJ3waCMHUuhUwb7n2m6zfdebe2SjFfw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-data-cassandra@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/5ca1e1a5-c848-45ee-965a-b98faec60078%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/a3cf84e8-0c32-473e-a3fd-de47a61941d9%40googlegroups.com.
See below.
To post to this group, send email to spring-data-cassandra@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/5ca1e1a5-c848-45ee-965a-b98faec60078%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from little elves with newly redesigned, sleeker, simpler looks.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/a3cf84e8-0c32-473e-a3fd-de47a61941d9%40googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cass...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/28b1abd2-07af-41f9-a88e-2ea9012c6388%40googlegroups.com.
protected String getMappingBasePackage() {return getClass().getPackage().getName();}which only search for the mapping classes inside the package where your configuration resides. All I had to was override the method to map the correct package.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/a3cf84e8-0c32-473e-a3fd-de47a61941d9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Spring Data Cassandra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring-data-cassandra+unsub...@googlegroups.com.
To post to this group, send email to spring-dat...@googlegroups.com.
Visit this group at http://groups.google.com/group/spring-data-cassandra.
To view this discussion on the web visit https://groups.google.com/d/msgid/spring-data-cassandra/28b1abd2-07af-41f9-a88e-2ea9012c6388%40googlegroups.com.