use hibernate to store tree