Skip to content
Advertisement

I have declared primary using PartitionKey annotation but still getting Entity Order does not declare a primary key

I have the following POJO: Getting the exception at the following code: The definition of connectionManager is here: https://pastebin.com/b3GKJuV6 The exception is as: I am implementing by following the documentation here: https://docs.datastax.com/en/developer/java-driver/4.2/manual/mapper/ . What could be the possible cause of this? EDIT:- Adding the schema definition: Answer Full Edit : There are a few things going on here which confuses

setReadOnly not working on PostgreSQL Connection

I have a problem setting a read-only connection with a PostgreSQL database using JDBC. I’m creating an application which loads queries to execute from a file, and I want to execute only SELECT (read-only) queries. Setting permissions on users who will run the application is not an option, so setting permissions at code level through the Connection.setReadOnly(boolean) method was the

Aeron basic pub/sub pair connects on same host, fails across hosts

I am running the BasicPublisher/BasicSubscriber pair from https://github.com/real-logic/aeron binding them to the same multicast group+port. When they run on the same host they connect, but when they run on separate hosts (same switch+subnet+vlan) the publisher reports “Offer failed because publisher is not connected to subscriber”. Here are my configurations: AERON PAIR: I ran an iperf udp pair on the same

I am trying to write a DAO interface using Datastax 4.2.2, but getting several compile errors

I have the following POJO: And now I am writing the OrderDao as following: And when I do ./gradlew build I get the following errors: I am implementing by following the documentation here: https://docs.datastax.com/en/developer/java-driver/4.2/manual/mapper/ . What could be the possible cause of this? Thanks. Answer You are missing the @Entity annotation on your Order class:

Advertisement