Thanks, Thomas. Yes, I can do that. But: a) Named in-memory connections are shared within JVM, which is not very handy "unit-test-wise", as you need to take care of clearing up the DB before each test. b) The same datasource is passed at the same time to Hibernate and Unit tests components, so will need to figure out the way to setup schema right after datasouce instantiation.
To be honest with all that functionality that H2Database provides this piece should be a piece of cake ;) Do you think we could add this as a feature request? On Dec 9, 9:27 pm, Thomas Mueller <[email protected]> wrote: > Hi, > > You could use named in-memory databases and create the schema first in > your application: > > jdbc:h2:mem:test > > Regards, > Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
