Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-549

Can't add a plugin when using postgres

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.5.Final
    • None
    • None
    • None

    Description

      Using 1.1.4-Final, I can't add any plugin because i get a 500 error with this message:

      ERROR: null value in column "id" violates not-null constraint
      

      So looks like that the hibernate_sequence is not being used to insert.
      Looking at the PluginBean class, i see the following:

      @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
      

      but maybe should be:

      @Id @GeneratedValue(strategy = GenerationType.SEQUENCE)
      private Long id;
      

      Attachments

        Activity

          People

            rbgaisford Brandon Gaisford (Inactive)
            ewittman@redhat.com Eric Wittmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: