puh, cannot answer out of my head, but will write a unit test to dig. Might help if you could provide a sample which also runs against EclipseLink and Hibernate. After all this is also about interoperability.
LieGrue, strub > Am 07.09.2017 um 18:56 schrieb Matthew Broadhead > <matthew.broadh...@nbmlaw.co.uk>: > > hi i tried this but it seems to just hang. is this not supported? > > private void updateAutoIncrement(int currentId) { > Query q = em.createNativeQuery("ALTER TABLE test auto_increment = ?;"); > q.setParameter(1, (currentId + 2)); > q.executeUpdate(); > }