The setting is as follows. I use MOXy 2.4.0 as jaxb provider in JBoss 6.1.0.Final. RESTEasy is used as JAX-RS provider. When an entity is unmarshalled, that references the same entity (same id's) multiple times, different instances of that entity are initialized. To make sure that both references point to the same instance, I have to set the fields on my own. Is there any approach to make sure that two equal entities are unmarshalled to the same object instance?
Thanks, Sebastian