Java Mailing List Archive

http://www.junlu.com/

Home » user.castor »

[castor-user] How to map cyclic / recursive objects?

jimmi4664

2009-11-12

Replies: Find Java Web Hosting

Author LoginPost Reply

I'm just starting out with castor. How can I map objects such as

class Person {
String name;
List<Car> cars;
// getters and setters
}

class Car {
String licensePlate;
Person owner;
}

where Person contains List of Cars, and each car has the same Person as
owner? I'd like to know how to create a mapping.xml file that takes care of
this.

--
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 junlu.com - Jax Systems, LLC, U.S.A.