Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14108

camel-jpa - while persisting list of entity, no id returned for entity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.17.1
    • Fix Version/s: 3.0.0, 2.25.0
    • Component/s: camel-jpa
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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 id is null 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?

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              brianyang brian yang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: