Not right now. But this could be easily added, as the code responsible
for adding the underscore to the Java member name is to be found in
either SourceFactory and/or MemberFactory (top of my head, with no
access to the code right now).
You might want to consider raising a Jira issue (feature request),
asking for this to be added. If you found the time (and energy) to
attach a (preliminary) patch that implemented that feature ... that
would be highly appreciated.
Werner
Jayaraman, Kannan wrote:
Is there a way I could prevent Castor not to generate the underscore in
front of the field names in java classes, when it generates the Castor
java code usingXML code generator.
Pls help
Thanks
Kannan
Sample code generated from Castor
* *
*public* *class* ApplicationIDResponse *extends*
com.citi.gcgna.cdf.shared.common.esb.endpoint.impl.EsbResponseBase
* *
*implements* java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field _applicationID
*/
*private* java.lang.String _applicationID; //TO AVOID GENERATION OF
UNDERSCORE IN FRONT OF THE FIELD NAME
//----------------/
//- Constructors -/
//----------------/
*public* ApplicationIDResponse()
{
*super*();
} //-- com.citi.gcgna.cdf.shared.co
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email