Hello all,

We are currently looking into using Camel for integrating with our
salesforce org.
To do this we plan to use the salesforce component and the
camel-salesforce-maven-plugin which generates DTO classes based on the
metadata fetched from salesforce.

We have encountered a problem when handling Fields of the PickList type with
the same name.

E.g. Customer class has a PickList Field called Type. This translates to
TypeEnum.java.

The problem occurs when we introduce the new Bicycle class, which also has a
PickList Field called Type.
This also translates to TypeEnum.java.

Result, the first TypeEnum.java is replaced/overwritten with the latter.

In the Java Class the method:

public String enumTypeName(String name) {
        name = name.endsWith("__c") ? name.substring(0, name.length() - 3) : 
name;
        return name + "Enum";
}

seems to be the source of this. 
Is there any way around this issue, is it possible to name the enums
differently when generating?

E.g. CustomerTypeEnum.java and BicycleTypeEnum.java





--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-salesforce-maven-plugin-picklist-to-enum-generation-tp5776908.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to