Soak the beans overnight in cold water. Soak the salt cod overnight under cold running water. Drain the beans, cover with fresh water and add all the other ingredients except the cod and ham. Bring to the boil and simmer for about 30 minutes.
Lay the salt cod on top of the beans, cover the casserole and simmer for about 30 minutes more, until the fish and beans are well cooked and tende