• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

[Springboot][Hibernate][JPA] Results of query are all null even when H2 db is populated

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have done a @OneToMany mapping and @ManyToOne mapping for these entities:


This is my repositories:

And this is the code in the service the that is calling this:

When my question is when I step through the codes using the debugger all the values are null, the H2 db has been loaded with data and  I can query it out using the console.
But Why are all the values of the properties of the returned object being set to null? The query returns results, the debug view even shows that the result_3 size is 1, but yet all the fields are empty. Can someone please help? Thank you in advance.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic