Uses reflection to get id of a give entity.
Uses reflection to get id of a give entity.
EntityMapperException
when @Id is no defined.
Checks if there is an @Id annotation field.
Reads entity value from result.
Reads entity value from result.
Note that @Id field will not be set unless it is explicitly marked as @Column. You can use setId() method to manually set @Id field when desired.
entity id
query result
Some(entity) when result contains at least one value needed by the mapping, None otherwise
Returns a map of serializers by column name.
Uses reflection to set an id for a given entity.
Uses reflection to set an id for a given entity.
EntityMapperException
when @Id is no defined.
Returns a class managed by this mapping.
Returns an optional ttl for this mapping.
Writes entity value into mutation batch.
Writes entity value into mutation batch.
Note that @Id field will not be written unless it is explicitly marked as @Column.
entity id
entity value
outgoing mutation
mutation TTL argument applied to the values represented by this mapping
Typed EntityMapping provides low level interface to write entities to mutation adapter and read them from result adapter.