Comments (9)
Matthew T. Adams commented
Considering that the method name in Spring Data is "verify", we should replace "Validator" with "Verifier" in the above class names & change the method name to "verify"
from spring-data-cassandra.
Matthew T. Adams commented
Method semantics of "verify" are defined in MutablePersistentEntity#verify(); basically, it must throw MappingException if the entity class fails verification
from spring-data-cassandra.
Matthew T. Adams commented
Some rules follow.
-
A type annotated with
@Table
or@Persistent
:- can have only one field annotated with
@Id
or@PrimaryKey
.^ - must have either a
@PrimaryKey
(or@Id
) field of a basic type or of a type annotated with@PrimaryKeyClass
.
- can have only one field annotated with
-
A type annotated with
@PrimaryKeyClass
:- must have fields that are each annotated with
@PrimaryKeyColumn
.^^ - must have at least one field annotated with
@PrimaryKey
(type = PrimaryKeyType.PARTITIONED)
- must have fields that are each annotated with
^: This may change in the future if we choose to support generated primary key classes.
^^: ...unless we choose to assume a @PrimaryKeyColumn
annotation with defaults if absent.
from spring-data-cassandra.
Matthew T. Adams commented
A field annotated with @PrimaryKey
(or @Id
) whose type is not annotated with @PrimaryKeyClass
must be included in a list of known basic primary key field types (String, Date, UUID, etc)
from spring-data-cassandra.
Matthew T. Adams commented
A type annotated with @PrimaryKeyClass
must implement java.io.Serializable. (The compiler should catch this, but it wouldn't hurt to ensure this.)
from spring-data-cassandra.
Matthew T. Adams commented
A type annotated with @PrimaryKeyClass
must override "boolean equals(Object)" and "int hashCode()"
from spring-data-cassandra.
Matthew T. Adams commented
A type annotated with @PrimaryKeyClass
must only extend java.lang.Object. (We may loosen this restriction in the future.)
from spring-data-cassandra.
Matthew T. Adams commented
Any field annotated with @PrimaryKeyColumn
must not have a type that is annotated with @PrimaryKeyClass
from spring-data-cassandra.
David Webb commented
Completed Verifier
from spring-data-cassandra.
Related Issues (20)
- Release 4.2.8 (2023.1.8)
- Release 4.3.2 (2024.0.2)
- Switch to Broadcom docker proxy
- Accept `BatchableStatement` in `CassandraBatchOperations`
- Flexible InsertOptions for CassandraRepository HOT 1
- Release 4.2.9 (2023.1.9)
- Release 4.3.3 (2024.0.3)
- Add support for Cassandra 5
- Add support for Vector types
- Add Support for Storage-attached indexing (SAI)
- Refine API to create and render CQL object specifications
- Bundle Javadoc with Antora documentation site
- Add support for using custom BeanNameGenerator.
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Maven Wrapper 3.9.8
- Upgrade to Maven Wrapper 3.9.8
- Switch from `DataAccessUtils.requiredSingleResult` to `nullableSingleResult`
- Release 4.2.10 (2023.1.10)
- Release 4.3.4 (2024.0.4)
- ResourceKeyspacePopulate fails on CQL scripts with `$$` delimited string constants containing semicolons HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-cassandra.