Hello everybody and thanks for help me.
I have a problem when I try to marshal a class like this:
public class Person {
.... Attributes ....
.... private Constructor ....
private Person() {
super();
} ..... Factory for the class .....
public static Person createPerson() {
return new Person();
}..... Other methods ..... }
I use a mapping file for marshalling. The class compiles perfecty, but when I try to marshal an object, it appears this:
Exception en thread "main" org.exolab.castor.mapping.MappingException: The Java class Person is not constructable -- it does not contain a default public constructor ..........
My question is: How can I specify this class has a factory method? Is it posible to avoid the need of a public default constructor?
_________________________________________________________________
Un amor, una aventura, compa��a para un viaje. Reg�strate gratis en MSN Amor & Amistad. http://match.msn.es/
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
