You can get any community items on a lot when you build it, using the changelotzoning to change it from residential to community and back. It's better to start residential because then you don't have to find a mailbox and trashcan later on.
This residential lot has a restaurant and shops in it
http://thesims2.ea.com/exchange/lot_detail.php?asset_id=373777. It's a little village, so I made it to work as a residential/community/home business/dorm, depending on how you change the lot zoning and where you put it.
The objects attract npcs, so you get a host a chef and waiters, and sims can eat there. When the waiters aren't busy, they walk across to the house and clean up too. In dorm mode, you get a cafeteria worker as well as the pay food. A disadvantage is that normal visitors may go to eat as soon as you greet them, and I don't know of a way to distract them. I don't know whether it'll give my computer a nervous breakdown, but I have eight sims in it, and it hasn't yet.
I've only just installed OFB. As I don't know how to run a restaurant as a business, I don't know if this one is working or not yet.