schauder wrote:
You could write your own jdbc driver that just logs the statements and returns some dummy values.
I think I will try this. :)
schauder wrote:
you could use a realy simple local database so that hibernate has the database as normal and simply log the statements. This should be way easier and more stable. But it doesn't fit your initial riquirements.
True I thought about doing this it just seems such a pain. I was hoping that Hibernate would provide an easy way. E.g. A fake mode where it would generate the insert statements etc without needing a database.