If you prepare this bean salad in advance, make sure to mix the contents well before serving, as the vegetables have a tendency to give off some additional water after being salted.
You can cook your beans from scratch, it will just more time! I find the canned beans work fine, especially if they are rinsed well before being included with the remaining salad ingredients.