A former music teacher at Erne Integrated College will not go to jail for sexually assaulting a child, a court has rule.