| Author |
Add and test Custom Finder Methods in WSAD 4.0
|
Bhadrayu Jani
Greenhorn
Joined: Oct 29, 2002
Posts: 3
|
|
Does anyone can give me example of how to add Custom Finder Method and test in WTE using WSAD 4.0. I will appreciate if I get step by step instuction. If you know book or article , please let me know. Thanks
|
 |
Bhadrayu Jani
Greenhorn
Joined: Oct 29, 2002
Posts: 3
|
|
|
I forgot to add that it is for CMP and Session Bean EJB 1.1.
|
 |
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3879
|
|
Start by adding a custom finder method to your Home interface (e.g. Enumeration findByEmployeeName(name)) Use the EJB extensions editor (pick a CMP and say "open with extensions editor") to open an EJB extensions editor. Click on the type of EJB finder you want (I strongly suggest using a WHERE clause finder) and type in the part of the WHERE clause after the "WHERE" such as "T1.NAME = ?1". My workbook goes into a little more detail about the types of custom finders, as does the Help (which I would STRONGLY suggest you read). Kyle
|
Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
|
 |
 |
|
|
subject: Add and test Custom Finder Methods in WSAD 4.0
|
|
|