Hi,
I have a class A which has one-to-many or one-to-one relationships with several other classes. In my test case, I save A to db, then retrieve it using its auto-generated id. When I run my testcases, I got the following AssertionFailedError:
As are not the same expected: A@... but was A@....
I checked both As id, they are the same. I am wondering what caused these two objects to be different while they should be the same? Configuration?
By the way, the associations among A and other objects are bi-directional.
Has anyone encountered this kind of problem?
regards,
|