Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Book Head First EJB

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 ]
Author & Gold Digger
Posts: 7617
IntelliJ IDE Java
  • 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
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic