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
Joined: Oct 29, 2002
I forgot to add that it is for CMP and Session Bean EJB 1.1.
Joined: Aug 10, 2001
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