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

Annotation column has no effect in Kotlin data classes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Works as Designed
    • 3.0.3 (Neumann SR3)
    • None
    • Core, Kotlin, Mapping, Repository
    • None
    • true

    Description

      @Table("get_responses")
      data class Response(
          @PrimaryKey
          @Column("session_id")
          val sessionId: String,
          val text: String,
          val type: String?
      )
      

      The column sessionId gets created as sessionid. In fact, the annotation column has no effect; @Column("abc") creates the column sessionid.

      Using this with Kotlin coroutine support (CoroutineCrudRepository).

      From cqlsh:

      desc ks.get_responses;
      
      CREATE TABLE ks.get_responses (
          sessionid text PRIMARY KEY,
          text text,
          type text
      )
      

      Attachments

        Activity

          People

            mp911de Mark Paluch
            asarkar Abhijit Sarkar
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 39 weeks, 6 days ago