2012-06-05 65 views

回答

1

這不被Camel Hibernate組件支持。

您可以改爲使用Camel JPA。頁面也包含示例。如果使用Hibernate作爲包裝實現,HQL可以用於名爲Query和query的消費者。

0

它沒有記錄,但你可以做到這樣的:

<from uri="hibernate:com.example.Foo?consumer.query=from com.example.Foo order by id"/> 

我做了與駱駝2.14.1。