The Camel JPA component doesn't support this use case at present, but I think it would be useful. Feel free to raise a JIRA [1] for it. And as you may know, we love contributions [2], [3]... ;-)
[1] http://camel.apache.org/contributing.html [2] https://issues.apache.org/jira/browse/CAMEL [3] http://camel.apache.org/building.html Best, Christian On Thu, Mar 29, 2012 at 2:09 PM, Borut Bolčina <borut.bolc...@gmail.com>wrote: > Hello, > > I do not dare to hope there is a one liner in Java DSL using JPA component > to update records such as: > > ... > > .to("jpa:my.model.entities.weather.WeatherCurrent?persistenceUnit=weather"&unique=someDbColumn) > > > > I am successfully ADDING the records, but I want to update them. Let's say > there was an imaginary option 'unique' as above , so > the underlying machinery could update the record based on given unique db > column. > > But what about now - how is camel solving this pretty much common problem? > > Just to be sure I am clearly explaining things: I will periodically produce > a set of Weather pojos and one field will hold an id and based on this id > which is also in the corresponding db table (not primary key), the data > should be updated (overwritten). > > -borut >