Man to face court over alleged Bega cafe hammer attack