This is a cheap to make copycat recipe for the type of 'beans on toast' beans we used to have in England. Made in a large slow-cooker or crock pot, it is easy, inexpensive, and nutritious.
This is so SIMPLE you'll wonder why you haven't been doing it for yonks.
Soak the beans overnight. Wash them well, then place them into a large pan of just enough boiling water to cover them about half an inch. Boil them at least 20 minutes, skimming off the foamy scum that will froth up from them (my dad always told me that scum was what cooked up the farts; I don't know about that, but I do know it can make the beans tough).
While the beans are boiling, finely dice the onion (I throw mine in the the food processor). Plug in the crock pot, turn it on high, and chuck in the onion and tomato juice. Add the boiling beans and stir well. Cover, and cook on high for at least 4 hours. I stir mine every hour or so to stop them sticking, but I think that might be just the heating element on my particular crock pot!
When they start looking like cheap baked beans (pale and watery), turn the crock pot down to low, and let them simmer away for another couple hours, until they start to look like Heinz beans (image above), or until your fed up of waiting for them and want to go to bed. Add the salt and pepper to taste at this stage: do it earlier the beans are likely to get tough. If you're not adverse to adding a bit of sugar, now's the time to do that, too. I sometimes add maybe 1/4C of maple syrup, or just sprinkle on about 2T of 'sugar in the raw' and stir that in. It seems to bring out the flavor.
I always let mine cool slowly—overnight—in the crock pot. They seem to thicken up and go more like Heinz beans that way. This recipe makes a good gallon or so of baked beans for the cost of a fancy coffee, and they freeze very well indeed. Try them on toast, or with 'Smart Dogs,' or even cold with a salad! I've even used them instead of marinara as the sauce on a (vegan) pizza. Yum!
**2 6oz tins of tomato paste can be substituted for the 15oz tin of tomato sauce; it all depends on what I have to hand.