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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.1
    • 3.0.0, 2.25.0
    • camel-jpa
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: