Thx Vlad, I've already known about this flag and it should be enabled to false, but it didn't work for me due to wrong order of this methods invocation: entityManagerFactory.afterPropertiesSet(); entityManagerFactory.setJpaPropertyMap(jpaProperties()); but it should be vice versa. But thanks this bug I've learned how sequence generator works |