8 Replies Latest reply on Sep 21, 2012 6:46 AM by norsay

    Persistence extension with XLS dataset - constraint problem

    norsay

      Hi community

       

      I'm trying to establish Arquillian based testing in a project. The Arquillian test are using the persistence extension to handle test data (data set is in XLS format, one entity per sheet which is named like the entity and includes all attributes).

       

      As far everything seems to work as expected. I'm able to insert test data into my H2 database and read them later during the tests

       

      However as soon as I'm trying to insert data which do have any relations to other date, it looks like they are not inserted correctly. I guess there is some kind of problem with parent child relations. Changing the sheets order in XLS does not solve the problem (insert parent first, then child data).

       

      Any hints or ideas to solve this problem?

       

      Cheers

       

      norsay