This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Book Head First EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Book Head First EJB" Watch "Book Head First EJB" New topic

Book Head First EJB

Karin Paola Illuminate
Ranch Hand

Joined: Oct 18, 2002
Posts: 109
The book says (on page 403)
Using an optional WHERE clause

In the bean class
public abstract Collection ejbSelectGetAllMovies () throws FinderException;

In the deployment descriptor
SELECT OBJECT (m) FROM MovieSchema m WHERE m.genre = ?1

The errata says

(403) Method header;
Looks like the header got copied from the previous page. The header should be:

public abstract Collection findByGenre(String genre) throws FinderException;

Should it be In the home interface instead of In the bean class ?
[ December 22, 2004: Message edited by: Karin Paola Illuminate ]

I not only use all the brains that I have, but all that I can borrow. [Laurence J. Peter]
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Without having the book open in front of me, it is hard to answer that since the context might provide important information that would help answer this question. As soon as I get hold of my copy, I will answer that question

[Blog] [Blogroll] [My Reviews] My Linked In
wood burning stoves
subject: Book Head First EJB