This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3.0 example