• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Add and test Custom Finder Methods in WSAD 4.0

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot to add that it is for CMP and Session Bean EJB 1.1.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic