Hibernate 5 persist and refresh an entity ends with this instance does not yet exist as a row in the database

I tried some more Hibernate version. Hibernate 5.2.17 does not has this problem also, so I can use this Version. I dont know why it didnt worked in the first time. Maybe some maven clean, caching or somethink didnt worked. I also tried all Hibernate version from 5.3.0.Beta1 till 5.3.4, but all Hibernate 5.3.x Version dont work. So it could have somethink to do with JPA 2.2, or some other improvements from Hibernate 5.3. Im going checkout every new Hibernate Version. Maybe sometime it is going to be fixed. I just can’t reproduce the Bug without seam, right now.