• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot find bean

 
andrea casini
Greenhorn
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.



 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you added the class to your persistence unit?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic