Hi,
I am using Castor-xml-1.0.5 to do data binding.
My class file is similar to the following
public class HearingDetailsVO {
private String caseNo;
private String docNo;
private int hearings;
}
When I use default Marshalling behavior, the xml generated is as <case-no>
<doc-no>, and etc.
Can I modify some property so that Castor by default will use exactly the
attribute name "caseNo" as xml name instead of "case-no"?
Currently I am writing customized mapping file to solve the problem, but I
am wondering whether I can do it without mapping file.
Regards,
Xinjun