• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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
 
All that thinking. Doesn't it hurt? What do you think about this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic