A court in Hong Kong has sentenced an Australian man to jail for more than seven years, as it sentences 45 pro-democracy activists.