Skip to content

Migration Guide from OASP4j 2.2.0 to OASP4j 2.4.0

rfreier edited this page Apr 13, 2018 · 1 revision

Migration Guide to Migrate from oasp4j-2.2.0 to oasp4j-2.4.0

io.oasp.module.jpa.dataaccess.api.AdvancedRevisionEntity.java is deprecated and has been moved to the package io.oasp.module.jpa.dataaccess.base.This deprecated class is provided for backward compatibility . So, if the user intends to use the deprecated class, he can do so by

  • pointing to (importing) the class io.oasp.module.jpa.dataaccess.base.AdvancedRevisionEntity.java in all the classes where earlier , the class io.oasp.module.jpa.dataaccess.api.AdvancedRevisionEntity.java was used.

  • Modifying the schema definition of the table RevInfo in ..\src\main\resources\db\migration\<dbName>\V0001__R001_Create_schema.sql, to use the column user instead of userLogin' . Resulting schema definition follows :

CREATE TABLE RevInfo(
  id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1),
  timestamp BIGINT NOT NULL,
  user VARCHAR(255)
);
  • and doing a 'mvn clean install' of the project.

Clone this wiki locally