Git Product home page Git Product logo

Comments (9)

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

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.
  • 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)

^: 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.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

Matthew T. Adams commented

A type annotated with @PrimaryKeyClass must override "boolean equals(Object)" and "int hashCode()"

from spring-data-cassandra.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

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.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

Matthew T. Adams commented

Any field annotated with @PrimaryKeyColumn must not have a type that is annotated with @PrimaryKeyClass

from spring-data-cassandra.

spring-projects-issues avatar spring-projects-issues commented on September 19, 2024

David Webb commented

Completed Verifier

from spring-data-cassandra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.