A simulate of database with hibernate