I was trying Spring with Hibernate with Java Annotations. I have to fetch data from the user table from PostGreSQL but I am not able to do it.I have multiple tables and I am able to perform CRUD operations on all of it except this user table. It throws an QuerySyntaxException. When I searched for it in Google, the possible solution it gave me was adding @Entity above the model class, mapping the table name correctly and adding the model to annotated class. I have done everything but still I am not able to solve this error. My files are as provided below:
And in controller when I access this,
This exception is thrown
Does anyone know what could be the problem? I am breaking my head over this issue over a day. Please help me.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler