I have an object "Role" which can contain several "Privileges", which are objects too. Now, when i try to serialize Role with Xstream my xml looks like this:\[code\] <role> <roleName>Administrator</roleName> <privileges class="org.hibernate.collection.PersistentSet"> <set> <privilege> <privilegeId>1001</privilegeId> <privilegeName>Admin Privilege</privilegeName> <privilegeKey>Admin</privilegeKey> </privilege> </set> <initialized>true</initialized> <owner class="role" reference="../.."/> <cachedSize>-1</cachedSize> <rolemodel.valueobject.Role.privileges</role> <key class="int">3</key> <dirty>false</dirty> <storedSnapshot class="map"> <entry> <privilege reference="../../../set/privilege"/> <privilege reference="../../../set/privilege"/> </entry> </storedSnapshot> </privileges> </role>\[/code\]I want it to look like this:\[code\] <role> <roleName>Administrator</roleName> <privileges> <privilegeId>1001</privilegeId> <privilegeName>Admin Privilege</privilegeName> <privilegeKey>Admin</privilegeKey> </privileges> </role>\[/code\]How can i omit/delete/not include all those additional fields? Seems like they are "utility" fields, added by hibernate, as i haven't declared them in my hbm.xml.I already tried omitting them, adding Privileges collection as implicit and other things i found on XStream page.