
Originally Posted by
bhiles
I've run into a situation that I don't know if it is a bug or not, but things are not working the way I think they should. I've got a test project with test case attached to this post to describe what I'm running into.
Class A (Line) has a M-1 relation with Class B (Brand). The relationship is managed through Class A with a setter set the one instance it has.
In Class B, I have a class variable a Set of Class A labeled as a relationship type of Incoming.
The test works fine for the first item of Class A. I can retrieve the instance of Class B and it has the instance of Class A as a member of its Set.
When I create another instance of Class A referring back to Class B, and then re retrieve Class B, it still only has one instance of Class A. I'm expecting both instances to be there.
I've isolated the situation I'm talking about to the attached project with a junit to show what I'm running into. Thanks in advance.