Hi,
Claus Ibsen-2 wrote:
>
>
>> from("jpa:com.test.entity.Customer?consumer.namedQuery=findAll&delay=10000&consumeLockEntity=true&consumeDelete=true")
>
> See the unit tests of camel-jpa, for example JpaWithNamedQueryTest
> It could maybe inspire you.
>
>
Sorry, but that didn't help at all ...
I want to know how to pass a parameter for a namedQuery-based jpa consume in
something like that
from("jpa:com.test.entity.Customer?consumer.namedQuery=findByOid)
where findByOid is defined in my orm.ml
<named-query name="findByOid">
<query>SELECT c FROM Customer c WHERE c.oid = :oid</query>
</named-query>
... DRy
--
View this message in context:
http://old.nabble.com/JPA%3A-How-to-pass-parameters-to-namedQuery-tp26118566p26126224.html
Sent from the Camel - Users mailing list archive at Nabble.com.