The Jinq sample code required some workarounds to work with Hibernate.