That's because Hibernate 4 uses old identifier generators. You can read more about it in this article. The reason why it fails is because the old generator used hilo, while the new one uses pooled. To switch to the old identifier generators, all you need to do is supply the following property:
|