This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB3.0 example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3.0 example " Watch "EJB3.0 example " New topic
Author

EJB3.0 example

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

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?


santhosh<br />SCJP,SCWCD
santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156

I was able to solve the above problem..

I have added above getId method of each entity.
 
GeeCON Prague 2014
 
subject: EJB3.0 example