Preheat the oven at 225 degrees Celsius.
Pour the cottage cheese and the eggs in a bowl and mix with an electrical mixer for 1 minute.
Cut the ham in slices, add in the cottage cheese.
Add the salt and pepper and mix well.
Pour it all in an oven form, place in the middle of the oven for 20 minutes.
Take the gratin out from the oven and serv warm with a salad.