Hello,
We have a database with over 300 tables we would like to test through unit-like tests. Therefore I would like to instantly create an in memory database (HSQL) with only the few classes/tables that are tested in that particular test.
The problem is that all mappings are related so that the only thing I can do is to include all classes in the hibernate.cfg.xml. Else exceptions like these occur:
Code:
Association references unmapped class: com.foo.bar.WonderfulThesis
Is it possible to modify the configuration of mappings-loading (as is done by the SessionFactory) so that
referenced unmapped classes are ignored?
In production this is something you do not want to happen, but from within tests it would be a nice feature.
Greetings,
Erwin