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



##########
File path: 
integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java
##########
@@ -84,11 +92,12 @@ public Object postRepositoryClass(Employee object) {
     @POST
     @Consumes(MediaType.APPLICATION_JSON)
     @Produces(MediaType.APPLICATION_JSON)
-    public Object postRepositoryClassOperation(Operation operation) {
+    public Object postRepositoryClassOperation(Operation operation, 
@QueryParam("mappable") boolean mappable) {
+        String className = mappable ? EmployeeMappable.class.getName() : 
EmployeeSerializable.class.getName();
         LOG.debugf("Sending to nitrite: {%s}", operation);
         return producerTemplate.toF("nitrite://%s?repositoryClass=%s",
-                dbFile, Employee.class.getName())
-                .withBody(operation.getEmployee())
+                dbFile, className)
+                .withBody(mappable ? operation.getEmployeeMappable() : 
operation.getEmployeeSerializable())

Review comment:
       This is only difference in method names and mapped url. Both methods are 
used. Names are fixed, thanks.




----------------------------------------------------------------
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:
[email protected]


Reply via email to