Water-cooled generator