hibernate example works perfecly