1. Preheat the oven to 210 °C (425 °F) and take the pastry out of the refrigerator 5 minutes before using.
2. Unroll the pastry, place it in the pie dish, and prick it in several places with a fork.
3. Meanwhile, score the tomatoes with a cross, blanch them, peel them, remove the seeds, and chop them, then drain.
4. Cut the ham into cubes.
5. In a bowl, whisk the eggs with the cream, grated Comté cheese, and softened butter.
6. Add the ham, tomatoes, salt, and pepper.
7. Spread a thin layer of mustard on the bottom of the pastry, and fill the dish with the mixture.
8. Bake for 20 minutes in the oven.