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

CassandraTemplate.update(…) does not apply UpdateOptions.ifExists

    XMLWordPrintable

    Details

    • Last commented by a User:
      true
    • Sprint:
      Lovelace RC1

      Description

      When using CassandraOperations.update(Query query, Update update, Class<?> entityClass) there are no ability for applying

      query.queryOptions(UpdateOptions.builder().ifExists(true).build())

       

      Even if entity does not exist in DB this method create new one.

      Need to change

      public RegularStatement update(Query query, Update updateObj, CassandraPersistentEntity<?> entity)

      method of StatementFactory for applying UpdateOptions.ifExists in same way as WriteOptions.ttl is applyied.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 15 weeks, 2 days ago