The entities on both sides of the relationship get data in their tables, but the mapping table remains empty. I don't see anything wrong, so I'm hoping someone here will.
The entities are Person and Circle and can be found here:
http://gifttracker.googlecode.com/svn/t ... ircle.java
http://gifttracker.googlecode.com/svn/t ... erson.java
If nothing is wrong with the entities, perhaps something is wrong with how they get persisted. That place, which correctly saves the entities but not their mapping, is here:
http://gifttracker.googlecode.com/svn/t ... eImpl.java
If you look at createAndJoinCircle, that is where the relevant code is. Here is the snippet which does the work:
Circle c = inner.get().createCircle(loggedInUser, name, password);
inner.get().joinCircle(loggedInUser, c);
If I step through in debug mode, the Person does have the circle instance in its 'circles' set right before it's merged. I've also tried adding the person to the circle, but that didn't help.
Thanks for any ideas,
Brian