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

Fix JPA config to make the entities work with both Hibernate 4 and Hibernate 5

    Details

    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      The current JPA config does not work 100% with Hibernate 5. This is one the errors seen:

      Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing column [EmailNotificationImpl_id] in table [Notification_email_header]
      	at org.hibernate.tool.schema.internal.SchemaValidatorImpl.validateTable(SchemaValidatorImpl.java:85)
      	at org.hibernate.tool.schema.internal.SchemaValidatorImpl.doValidation(SchemaValidatorImpl.java:50)
      	at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:91)
      	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:473)
      	at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)
      	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)
      	... 9 more
      

      We should fix the config so that the entities are compatible with both JPA 2.0 and JPA 2.1 (assuming that is even possible).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                psiroky Petr Široký
                Reporter:
                psiroky Petr Široký
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: