• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Book Head First EJB

 
Karin Paola Illuminate
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic