Using the Object Mapper with Scala
DataStax's Java driver for Apache Cassandra and DSE includes a useful feature called Object Mapper, which simplifies database access by allowing direct mapping of Cassandra tables into business objects. This approach eliminates the need to write numerous calls like getInt or getString to extract data from returned rows and convert it into classes. The Object Mapper also supports execution of custom queries for cases when a set of objects needs to be retrieved, or when the Mapper approach is not flexible enough. Scala as a JVM-based language also provides support for annotations, which can be used with Object Mapper in similar ways as Java.
Company
DataStax
Date published
July 17, 2019
Author(s)
Alex Ott
Word count
1849
Language
English
Hacker News points
None found.