Walk him everyday.. at least 30 mins so hes tired and doesn't get bored.
If hes had lots of exercise, lots of food, lots of attention (when its nessecary) then you should hush him if he whines..
But don't hush him if hes whining for good reasons.
Also, only give a dog lovin when he's done...