I'm not actually sure this is a problem, I just don't know if Castor does it.
To explain, I'll start w/ the example code on the Castor website under "Usage Pattern" (http://castor.exolab.org/xml-mapping.html#4.-Usage-Pattern). So from Java's perspective we have an Items, Clients, and Orders. Orders have one Client, and 0+ Items. The mapping.xml file given shows nicely how to marshal/unmarshall this to/from XML on a per order basis. BUT! What if we wanted to marshall multiple Order's in the same file? Let's say there were two orders from two different Clients, both ordering the same Item. It seems that Castor would marshall things like so: <Orders> <Order reference="12343-AHSHE-314159"> <Client> <Name>Jean Smith</Name> <Address>2000, Alameda de las Pulgas, San Mateo, CA 94403</Address> </Client> <Item reference="RF-0001"> <Description>Stuffed Penguin</Description> <Quantity>10</Quantity> <UnitPrice>8.95</UnitPrice> </Item> </Order> <Order reference="11111-AAAAA-111111"> <Client> <Name>President Skroob</Name> <Address>1234, Doublemint Ct., Planet Spaceball 00000</Address> </Client> <Item reference="RF-0001"> <Description>Stuffed Penguin</Description> <Quantity>10</Quantity> <UnitPrice>8.95</UnitPrice> </Item> </Order> </Orders> Essentially item RF-0001's data was copied to both orders. Here's the problem: When unmarshalled back into java objects, I'm expecting this to create two Items that are "equal()", but NOT "==". Is this true? Is there a way to make it "=="? Have I made any sense? thanks a ton, +jeff ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
