Hi,

 

We were trying to marshall a Java Bean A which has a collection of Java Bean B (type ClassB). The mapping file is used and the type is specified for the collection. But when I constructed the Java Bean A with a collection of wrong type(type ClassC), it still got marshaled with type ClassC and ignore my mapping file.

 

Is there any way I can catch an exception if I passed wrong type Java Bean to collection which didn’t match the type specified in the mapping file?

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to