I\'m trying to iterate over all of my tables so I can truncate each one (at the beginning of each of my JBehave tests).
I thought I would be able to:
if you want truncate all of your table you can set hibernate.hbm2ddl.auto in hibernate.cfg.xml by value Create.
hibernate.hbm2ddl.auto
create
but if you want just get all table name and truncate some of them this method don't work.