> So how do you update the value when its changed?
Well you could go the JavaBean route with property change listeners and all that jazz....
Or you could take my earlier suggestion to inject the instance of A into the instance of B, so then B can just call A.getId() and always get the correct value.
[Message sent by forum member 'raydecampo']
http://forums.java.net/jive/thread.jspa?messageID=478126