OpenJPA
  1. OpenJPA
  2. OPENJPA-349

No object inserted if entity only contain ID attribute and set to IDENTITY

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.2.0
    • Component/s: kernel
    • Labels:
      None

      Description

      If the entity only contains the ID column and the generated strategy set to IDENTITY, then when saving this object, then will not insert record to database.

      @Entity
      @Table(name="A")
      public class A {
      @Id
      @GeneratedValue(strategy=GenerationType.IDENTITY)
      public int id;
      }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Pinaki Poddar
            Reporter:
            Eddie Man
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development