Skip to content

Upgrade H2 version 2.0.204 from 1.4.200 #3325

@emircankilinc-oviva

Description

@emircankilinc-oviva

Hi, we are trying to upgrade 2.0.204 from 1.4.200 because of vulnerability. We are using latest quarkus version. But we are getting an error related with running our entity manager tests. While persisting data we are getting below error. Could you any suggest for that?

Error :

- javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement

- Caused by: org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: 
   NULL not allowed for column "ID"; SQL statement:

And also we are using id like :

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

There was no problem with 1.4.200 version. All test cases work. But now all entity manager tests failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions