Skip to content
Advertisement

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

I have the following POJO:

JavaScript

And now I am writing the OrderDao as following:

JavaScript

And when I do ./gradlew build I get the following errors:

JavaScript
JavaScript
JavaScript

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.

Advertisement

Answer

You are missing the @Entity annotation on your Order class:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement