Here is a long way to do it:
Insert insert = CassandraTemplate.createInsertQuery(cassandratemplate.getTableName(user.getClass()).toCql(), entity, options, cassandraTemplate.getConverter());
I think this could be repurposed into a method of CassandraTemplate easily
Anton Koscejev opened DATACASS-250 and commented
It would be nice to support lightweight transactions. At least in CassandraOperations, so that they can be used by custom repository methods.
Something like this:
Or this (note the exceptions):
Or perhaps simply adding it to WriteOptions:
With some Enum like this:
Or as two separate options (but then have to ensure only one is specified).
With insert/update automatically chosen based on which option is specified, if any. And exceptions thrown in case of WriteOptions
Referenced from: pull request #107, and commits 8d64401, b72ad3d, 10eab88, 6ccab0f
The text was updated successfully, but these errors were encountered: