In the same pot over medium heat, warm the oil. Add the onion and cook, stirring frequently, until soft, 6 to 8 minutes. Add the garlic and cook for 2 minutes longer. Stir in 3 cups water, the beans, the wine, tomatoes, vinegar, parsley, oregano, thyme, paprika, and bay leaves. Bring to a boil, reduce the heat, cover, and simmer for 1 hour. Add 2 teaspoons salt and continue cooking until the beans are tender, 1/2 to 1 hour longer.