Menu

#169 Avoid CyclicTablesDependencyException

pending
nobody
None
5
2012-07-23
2012-01-10
No

I found a way to avoid CyclicTablesDependencyException (maybe I'm missing some part of the problem). This could be as simple (maybe some configurable item), to split the dataset in two datasets.

The first will do the inserts, having problematic fields in null.
The second dataset will then update the records, defining dependencies according to our needs.
(This is the natural way I do this stuff when I have to insert cyclic data manually)

Discussion

  • Roberto Lo Giacco

    Your approach is correct, the problem would be to do it automatically. We have an implementation strategy for dbUnit 3 using EL, but we don't feel it practical for dbUnit 2 and dbUnit 3 is in it's early development stage.
    Unless you can provide a patch and relative unit tests I'll have to close this as not applicable.

     
  • Roberto Lo Giacco

    • status: open --> pending
     

Log in to post a comment.