Soak the beans overnight at room temperature. Drain and rinse them, and add them to a large pot or Dutch oven. Add the water, salt pork or bacon, ham hocks, and bay leaves. Bring to a boil, reduce heat to low, and cook for 90 minutes.
Remove the ham hocks and salt pork. Discard the salt pork and shred the meat in the ham hocks. Discard the fat and bones on the ham hocks.
Put the ham hock meat back into the pot.
Heat a large skillet over medium heat and add the olive oil. Once the oil is hot, saute the chopped onions and garlic for 5 minutes or until translucent.
Add the sauteed onions and garlic to the pot along with the oregano, cumin, salt, and pepper. Simmer for 15 minutes, and serve.