Not sure what's the point of it though - if I am just slacking off those 3 months, what are they going to do, fire me? I see how it's good for me - I get 3 months paid vacation - but I don't see how it makes any sense for them. Looks like it's just a cost imposed on the employer, not something I have to do, but something they have to pay.
For example, IT consultants usually need to stay for around 3 months following their resignation.
It's the other side of the coin of strong employment laws that make it very hard for people with permanent positions to be let go, unlike the US.