JAXB2 plugin for generating bound property
Jerome wrote a plugin for XJC that generates bound properties instead of plain simple properties. It was originally a part of Glassfish, but since it is generally useful for other people as well, we split it out and moved it to jaxb2-commons.
You can see the sample code that it generates here, and download the bits from here. This has been asked by more than a handful users in the past. So if you are one of them, go have fun! And if you find any issues, let me know.