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/02/16 11:45:16 UTC

[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #2254: Nitrite native support #1298

aldettinger commented on a change in pull request #2254:
URL: https://github.com/apache/camel-quarkus/pull/2254#discussion_r576761437



##########
File path: integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java
##########
@@ -71,11 +73,17 @@ public Response getRepositoryClass() throws Exception {
     @POST
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces(MediaType.APPLICATION_JSON)
-    public Object postRepositoryClass(Employee object) {
+    public Object postRepositoryClass(EmployeeSerializable object, @QueryParam("mappable") boolean mappable) {
+        String className = mappable ? EmployeeMappable.class.getName() : EmployeeSerializable.class.getName();
+        //if object, is mappable, construct it from serializable (it is conversion caused by tthe type in method parameter)

Review comment:
       small typo here "tthe"




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org