Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Brain power pg 269 in Head First EJB

 
Sridevi Sangaiah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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?
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Was it correct ?
Best,
Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic