Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Brain power pg 269 in Head First EJB

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what does "Delete all Customers previously declared 'inactive'"
mean?Where(either in component or home interface) should we provide the necessary operations to achieve the above and how?
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sridevi,
Welcome to JavaRanch !

what does "Delete all Customers previously declared 'inactive'" mean?


I guess that 'inactive' is a business rule like 'customers with no orders' for instance.

Where(either in component or home interface) should we provide the necessary operations to achieve the above


In the home interface, because that method will not - by definition - be related to any specific bean instance.

and how?


Mmh... You are going far beyond the scope of the brain power of p. 269 !
OK, I was kidding.
Your question is interesting, I am unsure that my solution below is correct, but I'll try to do as an exercise :
* In CustomerHome *

* In CustomerBean *

* In the deployment descriptor *

Is this correct ?
Best,
Phil.
 
Sridevi Sangaiah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Philip,
You have really given a big picture of the solution to my question.I have got it, but yet to try out.I guess it should be correct upto my knowledge(though little i have).Thanks Philip.
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Was it correct ?
Best,
Phil.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic