[ https://issues.apache.org/jira/browse/CAMEL-14108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960286#comment-16960286 ]
Claus Ibsen commented on CAMEL-14108: ------------------------------------- Ah I can see in the code that when its a collection then the returned value from the save is not updated in the message body in Camel vs a single entity, so there may be a little bug > 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)