Hi

Sorry for the late reply.

A good place with open source is if you dont get an answer in time is
to peek the source code and do your own investigations if time
permits.

On Wed, Jul 22, 2009 at 8:44 AM,
mohammad.abdellatif<[email protected]> wrote:
>
> How we can get from a JPA component and entity bean with a specific id.
> JPA component documentation at http://camel.apache.org/jpa.html says, as I
> understand, you can cosume entities from a table as a logical queue, put how
> to consume from it and according to which criteria, like an @id for example,
> is not mentioned

The JpsConsumer have 3 options for queries that you can set:
- query
- namedQuery
- nativeQuery

That are all strings where you can do your filtering.

For example from this unit test:
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jpa/src/test/java/org/apache/camel/component/jpa/JpaWithNamedQueryTest.java

As always OS projects can you a helping hand with documentation.


> --
> View this message in context: 
> http://www.nabble.com/consuming-an-entity-bean-from-a-table-using-JPA-tp24600877p24600877.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to