Hi all,
I would be interested to know if someone found a "magic way" to load test data with Hibernate (or at least a good practice).
I am not speaking about thousands of records, just usual functional test data (may be 20 records per table).
Here is my problem : I wanted to adopt a very "object oriented" way of generating my test data. I wanted to :
1- read data inside Excel files our tester is very confortable with Excel)
2- create objects from those Excel files
3 - Persist data inside the database using Hibernate
At the beginning, when my database schema was small, it worked like a charm. But little by little, it became incredibly complicated, and I realized that solution was just not the right one (I had to take into account whether there was a cascade or not, the type of relation...).
Is there a solution that you would recommend ?
|