Hibernate upgrade to 4 from 3, refactor Sequence Generator class