• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

cannot find bean

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to everyone.

I'm developing a webapp using hibernate and struts. I don't know if this is a problem regarding struts or the object relational mapping. I have this class mapped in the database with annontations:

I need to display in a jsp all of the objects "prenotazione" inside the database, so I create an action wich loads the collection of "prenotazione" using this method.

Now the problem is that when I try to display a relational property like "spettacolo" "data and "utente". I get this error:

It looks like hibernate doesn't load these property and I don't know why.
Please someone help me.

Ranch Hand
Posts: 62
Ruby Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you added the class to your persistence unit?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic