This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Thanks for the reply.I think I didn't ask the question the right way.Recruiter has many Jobs posted.So anytime I delete a Recruiter,the associated jobs get deleted as well.But what if i only want to delete particular jobs(e.g. all the jobs posted in the last 7 days) without deleting the Recruiter.
Well, again, you don't have a Date defined in your Job class. But I'll pretend you do. First, you have to determine how old a particular job is. If it is within the bounds of your timeframe, then just do: