Boil the rice in plenty of slightly salted water, drain it al dente and cool it in the Freddy with the function of blast chilling for 15 minutes, then pour it into a bowl and mix it with Parmesan cheese, pecorino cheese and eggs. Season with salt and pepper and mix well.
Cover with baking paper a tart mould, place the mixture of rice and roll it out to cover the bottom and the walls of the mould. Cover with another sheet of oven paper wet and wringed, pour over the dried beans and bake in the preheated oven to 180ºC for 20 minutes, then remove the paper and dried beans and continue cooking for another 15 minutes.
Meanwhile, cook in a pan with a drizzle of oil the eggplant cut into small pieces for 6-7 minutes; remove the eggplant from the pan and set aside. In the same pan cook sliced courgettes and spring onions cut into logs for 5-6 minutes. Add the tomatoes and cook for another 3-4 minutes. Add the eggplant already cooked and season with salt and pepper.
Remove the rice base from the mould, fill it with the vegetables, complete with the diced mozzarella and bake for another 5 minutes at 180°C.