Configuring Hibernate for work with reference tables