Cloud Native Integration with Apache Camel by Guilherme Camposo

Cloud Native Integration with Apache Camel by Guilherme Camposo

Author:Guilherme Camposo
Language: eng
Format: epub
ISBN: 9781484272114
Publisher: Apress


Listing 4-6GET Operation Response

Parameterized Queries with JPA

In the first example using the JPA component, you did a simple find all query, but commonly you need to parameterize queries to retrieve only the specific entries in the database. Now you will learn how to make different searches using the JPA component and how to pass parameters values dynamically to queries.

In order to learn more about how the JPA component works, you need to make a few changes to the contact-list-api-jpa project. Instead of applying changes on top of it, let’s work with a new project: the contact-list-api-v2.

Open it in your IDE. Let’s start by analyzing the RouteBuilder; see Listing 4-7.public class ContactListRoute extends RouteBuilder {



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.