Hi The hibernate component works similar as the jpa component, so you can do similar what the jpa can do. http://camel.apache.org/jpa
You can use the @Consumed annotation on the entity to have camel-hibernate call a method where you can set a flag that marks the record as processed https://code.google.com/a/apache-extras.org/p/camel-extra/source/browse/components/camel-hibernate/src/main/java/org/apacheextras/camel/component/hibernate/Consumed.java There is a @Consumed sample here https://code.google.com/a/apache-extras.org/p/camel-extra/source/browse/components/camel-hibernate/src/test/java/org/apacheextras/camel/examples/MultiSteps.java On Tue, Jul 22, 2014 at 7:02 AM, rbkumar88 <[email protected]> wrote: > Hi, > > I want to do a conditional select on a table using camel-hibernate and it > should happen every 1 minute. > > Once the record is consumed, I also want to mark the record as > processed(update some fields in the table). > > I am able to achieve this using a camel-sql component. But I am looking for > a hibernate alternative. > > > Thanks > Bharath. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Scheduled-Timer-and-Conditional-select-using-camel-hibernate-tp5754179.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
