Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-9858

sql server scripts use identities instead of sequences for spring boot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.59.0.Final
    • None
    • None
    • None
    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Workaround Exists
    • Hide

      Letting hibernate to create the tables

      <hibernate.hbm2ddl.auto>create</hibernate.hbm2ddl.auto>
      

      All work correctly

      Show
      Letting hibernate to create the tables <hibernate.hbm2ddl.auto>create</hibernate.hbm2ddl.auto> All work correctly
    • Hide

      Try to start RHPAM from springboot with an Sql server 2017 database using SQLServer2012Dialect and tables created with our provided scripts in https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downloadType=distributions&product=rhpam&version=7.08.1

      Show
      Try to start RHPAM from springboot with an Sql server 2017 database using SQLServer2012Dialect and tables created with our provided scripts in https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?downloadType=distributions&product=rhpam&version=7.08.1

      Using our provided ddl scripts sql server tables are created with identities:

          create table SessionInfo (
              id numeric(19,0) identity not null,
              lastModificationDate datetime,
              rulesByteArray image,
              startDate datetime,
              OPTLOCK int,
              primary key (id)
          );
      

      but sqlserver2012dialect is expecting sequences

      WARN  SqlExceptionHelper             |  |: SQL Error: 208, SQLState: S0002
      SqlExceptionHelper             |  |: Invalid object name 'SESSIONINFO_ID_SEQ'.
      WARN  PersistableRunner              |  |: Could not commit session
      javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
      

      Looks like jbpm project distinguish from sqlserver2008 and sqlserver above 2008 but use of identities is the same:

              elguardian@gmail.com Enrique González Martínez (Inactive)
              elguardian@gmail.com Enrique González Martínez (Inactive)
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: