a simple wrapper for working with hibernate in scala