This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3.0 example

 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created an ejb3.0 entity bean example with @ManytoOne relation. Iam getting a strange error



my example code is as follows:
Book.java

Author.java


my stateful session bean has following code :



Iam using Mysql, can you please tell me what can be the fix for this?
 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to solve the above problem..

I have added above getId method of each entity.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic