You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/05 03:36:14 UTC
[GitHub] [camel-quarkus] zhfeng commented on issue #3249: Leverage Quarkus code generation for Salesforce DTO generation
zhfeng commented on issue #3249:
URL: https://github.com/apache/camel-quarkus/issues/3249#issuecomment-961603099
I aussme that the basic idea here is to implement such a class
```java
public class CamelSalesForceCodeGen implements CodeGenProvider {
@Override
public String providerId() {
return "camel-salesforce-codegen";
}
@Override
public boolean trigger(CodeGenContext context) throws CodeGenException {
/* the core logic in camel-salesforce-maven-plugin to generate DTOs */
/*
1. fetch Object descriptions by RestClient
2. use velocity engine to generate the DTOs java codes
*/
}
}
```
some properies could be similar with the ```camel-salesforce-maven-plugin``` Mojo parameters
```prop
quarkus.camel.salesforce.codegen.skip = false
quarkus.camel.salesforce.codegen.includes = Account
quarkus.camel.salesforce.codegen.includePatterns = *
...
```
What's the benifit we can get from this enhancement ? Maybe generate different codes with launch mode, coulde be useful for testing purpose..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org