with hibernate --- insert and viewall