An example how to use hibernate