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

Can't add a plugin when using postgres

XMLWordPrintable

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

      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;
      

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

                Created:
                Updated:
                Resolved: