79175557

Date: 2024-11-10 19:19:39
Score: 1.5
Natty:
Report link

If you are using the Lombok project, make sure you have all this in your Gradle

`

dependencies {
    implementation 'org.projectlombok:lombok:1.18.24'
    annotationProcessor 'org.projectlombok:lombok:1.18.24'
    }

tasks.withType(JavaCompile) {
    options.annotationProcessorPath = configurations.annotationProcessor
}

`

and add @Data on top of your entity @Entity

if you use POJO add setter and getters to your Entity class.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Data
  • User mentioned (0): @Entity
  • Low reputation (1):
Posted by: Tariku Ahmed