• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Spring + Hibernate

Ranch Hand
Posts: 499
Spring AngularJS Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

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.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic