Side note: It is depressing that the question winds up being asked this way (EDIT: while ignoring how depressing it is that it is an existing question in the first place) !
Instead it should be: "Is it generally easy for employers to get permission from their employees to be assigned all rights for code they write in private?"