Hi Guys,
i'm new to Hibernate (both forum and technology). I search for these terms and in doc but was unable to find how to do this :
I have set my Hibernate configuration, *.hbm.xml file and Junit test on these files. My tests run ok. I use setUp and tearDown to insert and remove data from my database Test. But what I want to do is to create the structure of my database in the setUp method. So I can generate a clean structure each time I run the tests I found how to set the conf file with <property name="hibernate.hbm2ddl.auto">create</property> but it isn't good because I can't include that in a transaction.
is there any method to use in Hibernate in order to create whole structure according to the conf files ?
Thanks
|