I’m using datastax cassandra object mapper (cassan...
# announcements
w
I’m using datastax cassandra object mapper (cassandra
version 2.0.7
) and have a data class to map to the table schema. In the schema, there is one
Boolean
field named
isDeleted
. When I create the mapper using the
MappingManager
, it throws the following exception:
java.lang.IllegalArgumentException: Cannot find matching getter and setter for field 'isDeleted'
I decompiled the kotlin byte code into java code and found that the getter and setter for this field were each compiled into:
Copy code
public final boolean isDeleted() {
      return this.isDeleted;
   }

   public final void setDeleted(boolean var1) {
      this.isDeleted = var1;
   }
I feel like this is the problem, in that the compiled java code gave the getter and setter unconventional names (unlike other fields, where getter was just
get<Fieldname>
and setter was
set<Fieldname>
. Is this the case? If so, am I stuck with this since I cannot force neither kotlin compiler or datastax object mapper to change?