| Hi Andrea, First: sorry for the multiple uploads, I made some changes but can't delete the initial upload.. I created a small project where I can reproduce the issue. Please unzip and check its contents. On src/main/resources/init.sql you will find a small script creating the important parts of the DB (users, tables and sequences). You might need to change (or disregard) tablespaces and etc. Important here is the fact that we have two users, one who has ownership of table and sequence. And the other who uses it. The table is super small, just an ID and On src/test/java/org/hibernate/bug/BugTest.java there is one test that reproduces the issue, by creating an entity and trying to persist it. A comment explains what happens and what is expected. If you can test against Oracle to see the problem happening, on src/main/resources/application.yml you'll have to update the URL to whatever you gonna use. By default I set there H2 with Oracle Dialect. Which is enough to see the problem (via logs), but won't make the test crash, since it doesn't really know about the permissions the user has. This is a gradle project, so you can ./gradlew clean build to build the whole thing. hibernate-bug-hhh11699.zip |