camel git commit: CAMEL-11164 Add @Generated annotation Salesforc...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

camel git commit: CAMEL-11164 Add @Generated annotation Salesforc...

zregvart
Repository: camel
Updated Branches:
  refs/heads/master 424273fa9 -> d9f4ff922


CAMEL-11164 Add @Generated annotation Salesforc...

...e generated code

Adds `@Generated` annotation to DTOs generated by the Salesforce Maven
plugin to help IDEs and code analysis tools.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d9f4ff92
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d9f4ff92
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d9f4ff92

Branch: refs/heads/master
Commit: d9f4ff92225593274759a47e0018eebc5642347f
Parents: 424273f
Author: Zoran Regvart <[hidden email]>
Authored: Tue Apr 18 23:45:20 2017 +0200
Committer: Zoran Regvart <[hidden email]>
Committed: Wed Apr 19 11:45:20 2017 +0200

----------------------------------------------------------------------
 .../src/main/resources/sobject-picklist.vm                        | 3 +++
 .../src/main/resources/sobject-pojo-optional.vm                   | 3 +++
 .../src/main/resources/sobject-pojo.vm                            | 3 +++
 .../src/main/resources/sobject-query-records-optional.vm          | 2 ++
 .../src/main/resources/sobject-query-records.vm                   | 2 ++
 .../src/test/resources/generated/Case.java                        | 3 +++
 .../src/test/resources/generated/Case_PickListAccentMarkEnum.java | 3 +++
 .../test/resources/generated/Case_PickListQuotationMarkEnum.java  | 3 +++
 .../src/test/resources/generated/Case_PickListSlashEnum.java      | 3 +++
 .../src/test/resources/generated/ComplexCalculatedFormula.java    | 3 +++
 .../src/test/resources/generated/QueryRecordsCase.java            | 2 ++
 .../resources/generated/QueryRecordsComplexCalculatedFormula.java | 2 ++
 12 files changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-picklist.vm
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-picklist.vm b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-picklist.vm
index 58bf3e6..847bbfc 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-picklist.vm
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-picklist.vm
@@ -21,12 +21,15 @@
  */
 package $packageName;
 
+import javax.annotation.Generated;
+
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonValue;
 
 /**
  * Salesforce Enumeration DTO for picklist $field.Name
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public enum $enumName {
 #set ( $values = $utility.getUniqueValues($field) )
 

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
index 4842307..9dcfca0 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm
@@ -23,6 +23,8 @@ package $packageName;
 
 import java.util.Optional;
 
+import javax.annotation.Generated;
+
 ## add imports for XStreamConverter and PicklistEnumConverter if needed
 #set ( $hasPicklists = $utility.hasPicklists($desc) )
 #set ( $hasMultiSelectPicklists = $utility.hasMultiSelectPicklists($desc) )
@@ -54,6 +56,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 /**
  * Salesforce DTO for SObject $desc.Name
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 @XStreamAlias("${desc.Name}Optional")
 public class ${desc.Name}Optional extends AbstractSObjectBase {
 

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo.vm
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo.vm b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo.vm
index 35b6f4a..9087f47 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo.vm
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo.vm
@@ -24,6 +24,8 @@ package $packageName;
 import java.util.ArrayList;
 import java.util.List;
 
+import javax.annotation.Generated;
+
 ## add imports for XStreamConverter and PicklistEnumConverter if needed
 #set ( $hasPicklists = $utility.hasPicklists($desc) )
 #set ( $hasMultiSelectPicklists = $utility.hasMultiSelectPicklists($desc) )
@@ -66,6 +68,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include;
 /**
  * Salesforce DTO for SObject $desc.Name
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 @XStreamAlias("$desc.Name")
 public class $desc.Name extends AbstractDescribedSObjectBase {
 

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records-optional.vm
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records-optional.vm b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records-optional.vm
index 56a6f25..c8c6bbf 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records-optional.vm
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records-optional.vm
@@ -25,11 +25,13 @@ import com.thoughtworks.xstream.annotations.XStreamImplicit;
 import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase;
 
 import java.util.List;
+import javax.annotation.Generated;
 
 /**
  * Salesforce QueryRecords DTO for type $desc.Name
  */
 #set( $descName = "${desc.Name}Optional" )
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public class QueryRecords$descName extends AbstractQueryRecordsBase {
 
     @XStreamImplicit

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records.vm
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records.vm b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records.vm
index d17468a..893bef8 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records.vm
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-query-records.vm
@@ -25,11 +25,13 @@ import com.thoughtworks.xstream.annotations.XStreamImplicit;
 import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase;
 
 import java.util.List;
+import javax.annotation.Generated;
 
 /**
  * Salesforce QueryRecords DTO for type $desc.Name
  */
 #set( $descName = $desc.Name )
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public class QueryRecords$descName extends AbstractQueryRecordsBase {
 
     @XStreamImplicit

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case.java
index df282c3..af37bd1 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case.java
@@ -7,6 +7,8 @@ package $packageName;
 import java.util.ArrayList;
 import java.util.List;
 
+import javax.annotation.Generated;
+
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 import com.thoughtworks.xstream.annotations.XStreamConverter;
 
@@ -25,6 +27,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 /**
  * Salesforce DTO for SObject Case
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 @XStreamAlias("Case")
 public class Case extends AbstractDescribedSObjectBase {
 

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListAccentMarkEnum.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListAccentMarkEnum.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListAccentMarkEnum.java
index 915d143..6af6914 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListAccentMarkEnum.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListAccentMarkEnum.java
@@ -4,12 +4,15 @@
  */
 package $packageName;
 
+import javax.annotation.Generated;
+
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonValue;
 
 /**
  * Salesforce Enumeration DTO for picklist PickListAccentMark
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public enum Case_PickListAccentMarkEnum {
 
     // Audiencia de Conciliaci√ɬ≥n

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListQuotationMarkEnum.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListQuotationMarkEnum.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListQuotationMarkEnum.java
index 3f55dd2..7719fa2 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListQuotationMarkEnum.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListQuotationMarkEnum.java
@@ -4,12 +4,15 @@
  */
 package $packageName;
 
+import javax.annotation.Generated;
+
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonValue;
 
 /**
  * Salesforce Enumeration DTO for picklist PickListQuotationMark
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public enum Case_PickListQuotationMarkEnum {
 
     // No apretar "miralo"

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListSlashEnum.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListSlashEnum.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListSlashEnum.java
index fca520a..4ad2758 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListSlashEnum.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/Case_PickListSlashEnum.java
@@ -4,12 +4,15 @@
  */
 package $packageName;
 
+import javax.annotation.Generated;
+
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonValue;
 
 /**
  * Salesforce Enumeration DTO for picklist PickListSlash
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public enum Case_PickListSlashEnum {
 
     // Acciones relacionadas con cotizaciones y/o avisos de entrega

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/ComplexCalculatedFormula.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/ComplexCalculatedFormula.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/ComplexCalculatedFormula.java
index 3eeaef1..4e550d9 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/ComplexCalculatedFormula.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/ComplexCalculatedFormula.java
@@ -7,6 +7,8 @@ package $packageName;
 import java.util.ArrayList;
 import java.util.List;
 
+import javax.annotation.Generated;
+
 import com.thoughtworks.xstream.annotations.XStreamAlias;
 
 import org.apache.camel.component.salesforce.api.dto.AbstractDescribedSObjectBase;
@@ -23,6 +25,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 /**
  * Salesforce DTO for SObject ComplexCalculatedFormula
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 @XStreamAlias("ComplexCalculatedFormula")
 public class ComplexCalculatedFormula extends AbstractDescribedSObjectBase {
 

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsCase.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsCase.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsCase.java
index a644a31..7b23a8f 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsCase.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsCase.java
@@ -8,10 +8,12 @@ import com.thoughtworks.xstream.annotations.XStreamImplicit;
 import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase;
 
 import java.util.List;
+import javax.annotation.Generated;
 
 /**
  * Salesforce QueryRecords DTO for type Case
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public class QueryRecordsCase extends AbstractQueryRecordsBase {
 
     @XStreamImplicit

http://git-wip-us.apache.org/repos/asf/camel/blob/d9f4ff92/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsComplexCalculatedFormula.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsComplexCalculatedFormula.java b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsComplexCalculatedFormula.java
index 279373b..951a70a 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsComplexCalculatedFormula.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/test/resources/generated/QueryRecordsComplexCalculatedFormula.java
@@ -8,10 +8,12 @@ import com.thoughtworks.xstream.annotations.XStreamImplicit;
 import org.apache.camel.component.salesforce.api.dto.AbstractQueryRecordsBase;
 
 import java.util.List;
+import javax.annotation.Generated;
 
 /**
  * Salesforce QueryRecords DTO for type ComplexCalculatedFormula
  */
+@Generated("org.apache.camel.maven.CamelSalesforceMojo")
 public class QueryRecordsComplexCalculatedFormula extends AbstractQueryRecordsBase {
 
     @XStreamImplicit

Loading...