how can I export Hibernate data to SQL statements, so that I might reimport them.
The data consists of mapped Entities, with Strings, Enums, Integers etc.
I would need an export like: insert into XX (…)
Or similar which I could easily rewrite.
Is there anything I could use yet?
ty
You can enable query logging by putting
<property name="hibernate.show_sql">true</property>it will print all the statements executed by hibernate,
that you can reuse. I normally use that to verify queries in my toad.