implement the Hibernate counterpart to the database benchmark.