So, I just realized that this may be a result of the order in which I created my test data. I first created a Device, persisted that, then created a DevClientId, set the Device on the DevClientId, but not the other way around. For whatever reason, this sometimes works if max_fetch_depth is set to 2, but since both sides of the relationship are not properly set when persisted, I’m assuming the testcase is not valid. I’ve still got a problem related to a similar mapping, dealing with data loaded from a database (oracle), but I don’t believe the test case replicates that problem. |