aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Possible Error in EJB 3 in action 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 "Possible Error in EJB 3 in action" Watch "Possible Error in EJB 3 in action" New topic
Author

Possible Error in EJB 3 in action

Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

I think this is the correct place to post this. I found a possible error in the EJB3 in Action book. On page number 274, in Listing 8.7 the name attribute in JoinColumn annotation is given as USER_BILLING_ID. The explanation on the next page says that it is the name of the Foreign key column in USERS table. The table structure given in Figure 8.4 doesn't corresponds to this. In that the name of the foreign key column is given as BILLING_ID. Is that an error or am I missing something...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
Ankit,

I will admit it makes me very uncomfortable personally to discuss this here. I would appreciate it if we can discuss this in the Manning author online forum for EJB 3 in Action instead: http://www.manning-sandbox.com/forum.jspa?forumID=273.

That being said, I don't see anything wrong with others discussing this here.

Regards,
Reza
[ December 11, 2008: Message edited by: Reza Rahman ]

Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Possible Error in EJB 3 in action
 
Similar Threads
Using @JoinColumn VS not using @JoinColumn
EJB3 in Action page 255
DatabaseMetaData.....
outer join in HQL
Java Persistence API Entities Enthuware Wrong Answer