This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find bean  RSS feed

 
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
Boost this thread!