I have looked at all the similiar posts but i just cannot figure it out. Any ideas ? Here is my Main:
The Entity itself:
and finally my persistence.xml which is located inside META-INF in document root.
Annotation processing is turned on inside IntelliJ Idea(Ultimate 2020.2)..
Finally my build.gradle:
When i start the application however i get this error:
There is 1 entry in my database which i inserted manually. It should print out this element. Any help is greatly appreciated :(
Put the NamedQuery
annotation inside a NamedQueries
annotation like so
@NamedQueries({
@NamedQuery(...)
})
This works for me.