-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added schema validation on context startup #1466
base: main
Are you sure you want to change the base?
Conversation
Thanks for having a look. The design requires a bit more thought and not everything should be a For type resolution, I suggest you have a look at Also, validation findings should be part of a model ( Let me know whether that helps. |
@mp911de I have introduced a couple of changes in accordance to what you've said:
But I do not fully understand wht you mean here:
Can you please give me a glue what is your vision here? You want |
I have rebased this PR. Any chance to review it? @mp911de |
Currently, this ticket (and several other ones) is on pause because we're limited in bandwidth. We currently can only fix smaller bugs and I don't know when we will have more time for proper enhancements. |
This is the PR to solve #764 issue.
The key takeaways in the PR: there is a new class, called
CassandraSchemaValidator
, that is validating Cassandra schema against existing entities in theMappingContext
. The keyspace where we expect the entities to show up is one that is configured to be used byCqlSession
(for now that is correct because we do not have a keyspace segregation for entities yet, see this ticket).The validation checks that:
P.S: I think it would be nice to add this as a bean to Cassandra auto-configuration to spring boot with some properties conditional annotations