lankydan / spring-data-cassandra Goto Github PK
View Code? Open in Web Editor NEWSpring Data Cassandra tutorial - containing branches with different topics that are used within my blog posts
Spring Data Cassandra tutorial - containing branches with different topics that are used within my blog posts
The code in the using_entities_the_cassandra_way
branch doesn't actually compile with Maven due to missing dependencies. Could you please fix this? Thanks! :)
Dependencies managed by Spring Boot are not required to specify a version number. In fact, that can cause issues because other Spring Data dependencies are managed too and can cause compatibility issues.
Line 38 in 13f6e71
Hello,
First of all, I waned to say thank you for the blog post and his project.
Even 3 years after its creation, the content is still very relevant. Many thanks.
I am working on a similar problem, where we need to use a Spring Boot 2.4.0 reactive WebFlux + Reactive Cassandra on two difference keyspaces.
We managed to come up with a solution where we have three config files, one abstract, and two for each keyspace, very similar to what you are doing.
Then, we have two repository classes, where all the queries are written with the @query annotation, and we write the keysapce name hardcoded there.
This solution is working, but it is rather ugly. This is why I went to look at your blog post.
Your solution is quite elegant!
However, as soon as we change the package structure: I put
CassandraConfig
KeyspaceACassandraConfig
KeyspaceBCassandraConfig
Under package config.
KeyspaceAPersonRepository
KeyspaceBPersonRepository
PersonRepository
Under package repository
(Which is really a default and most common packaging structure for Spring), it is not working anymore.
It is always defaulting to keyspace A.
May I ask what is the issue? Can this solution ou propose, which is very elegant, be package agnostic?
Thank you
Wide parts of the config are already provided by Spring Boot (contact points, schema actions, enabling reactive repositories). The only feature not provided by Boot is setup/drop of keyspaces. Maybe you want to outline that particular aspect to explain why that is โ btw. filing a Boot ticket to customize keyspace creation/drop is never a bad idea ๐ธ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.