We have been using Kundera library in our Java project for connecting to Cassandra database 3.11.11 . The library or jar file that we have been using is com.impetus.kundera.client.kundera-cassandra.3.13.jar Recently the DBA team in our project migrated DB to Cassandra 4.0.7 version. After migration ,we are not able to connect to the DB. We were using thrift client factory com.impetus.client.cassandra.thrift.ThriftClientFactory , port 9061 in persistence.xml.
We have also read in the documentation that Kundera doesn’t support Cassandra 4.x . https://github.com/Impetus/kundera/wiki/Datastores-Supported
Please help us in identifying the issue here. Please suggest any other alternative that we can use to connect Cassandra 4.x using Java application
Thrift has been deprecated for a very long time and finally removed with version 4.0. For a Java application it is safe to use a recent version of DataStax Java-driver. Other than Thrift, the CQL based Java-driver does have an object mapper, so you probably don't want any other library to include to get JPA support. However, Spring-Data is fairly popular and also provides JPA style mapping to multiple back-ends including recent Apache Cassandra.