Am 13.12.12 16:59 schrieb "dmcamp" unter <dimac...@gmail.com>:
>Hello Everyone, > >I'm looking for a way to do something like this: >.... >to("jpa://com.domain.MyEntity?consumer.query=select x from >com.domain.MyEntity e where e.processDate < ?", new Date()) >... >I mean I need a way to pass objects as query parameters. In this case what >I'm trying to do is that each time the jpa endpoint its called it >executes a >query which selects the entities that has a processDate that is before or >equal to the current moment. >Is there a simple way to do this? Hi No currently this's not possible. A possible solution to this would be to bind such a JPA Query *object* into the Camel registry from where the Consumer/Producer would pick it up and use it. Currently all you can do is to pass in the JPA Queries through their names as *String*. Feel free to log a JIRA for this. Babak >Thanks! > > > > > >-- >View this message in context: >http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp572404 >6.html >Sent from the Camel - Users mailing list archive at Nabble.com.