Uploaded image for project: 'Spring Data for Apache Cassandra'
  1. Spring Data for Apache Cassandra
  2. DATACASS-452

Better names for CassandraRepository

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.0 M4 (Kay)
    • Component/s: None
    • Labels:
    • Last commented by a User:
      false

      Description

      TypedIdCassandraRepository and CassandraRepository are both repository interfaces declaring CRUD operations. The key difference to both repositories is that TypedIdCassandraRepository is the store-specific interface (compares to JpaRepository, MongoRepository) and CassandraRepository is typed with MapId as Id type.

      TypedIdCassandraRepository is a name that lets one assume it's a specialized form of a Cassandra repository whereas CassandraRepository is the more specific interface.

      We should turn the idea around and make CassandraRepository the basic, store-specific interface with the following steps:

      • Rename CassandraRepository to MapIdCassandraRepository
      • Rename TypedIdCassandraRepository to CassandraRepository
      • Introduce TypedIdCassandraRepository extending CassandraRepository as deprecated type to ease migration

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            mp911de Mark Paluch
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 16 weeks, 5 days ago