[
https://issues.apache.org/jira/browse/CAMEL-14108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960288#comment-16960288
]
Claus Ibsen commented on CAMEL-14108:
-------------------------------------
So likely here we need to store the returned values from the save in a
temporary collection, and then replace them all back again
https://github.com/apache/camel/blob/f1d33ff95602498569274c913a7c6972d95a5b57/components/camel-jpa/src/main/java/org/apache/camel/component/jpa/JpaProducer.java#L264
The same for the array
> camel-jpa - while persisting list of entity, no id returned for entity
> ----------------------------------------------------------------------
>
> Key: CAMEL-14108
> URL: https://issues.apache.org/jira/browse/CAMEL-14108
> Project: Camel
> Issue Type: Bug
> Components: camel-jpa
> Affects Versions: 2.17.1
> Reporter: brian yang
> Priority: Minor
>
> i have java entity object with id attribute.
> when i persist single object by using following
> <to uri="jpaOut://com.dnd.model.dnd.eav.EntityInstance"/>
> <log message="${body}"/>
> the result message include the generated id for entity instance, and it is
> saved in database
>
> when i persist a list of object by using
> <to
> uri="jpaOut://com.dnd.model.dnd.eav.EntityInstance?entityType=java.util.List"/>
> <log message="${body}"/>
> the result message shows that {color:#FF0000}id is null{color} for each
> entityinstance in the list, however, each object is created in database.
> why id is null for list of returned object ? is this a bug?
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)