Fixing up stale data associations in Seam’s EntityHome
Wednesday, October 29th, 2008Through a combination of hints found online along with some guidance from the instructor at the “Seam Essentials” training course I recently attended in Austin, TX - I figured out how to solve a problem I was having where instance data on the “far side” of @OneToOne and @OneToMany data associations was not staying synchronized with values on the “near side”.
Now that I understand the solution, it becomes clear to me that all the information I needed was out there - just not all in one place with good example code.
For the sake of formatting, I’ve placed the commented code here: http://pastie.org/private/wk2v3rbw892e5vbbenum7g (and I’m NOT claiming this is good example code)
Now I can move on to the never-ending list of other challenges.