Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Migration guide for Tesler 2.0

abratashev edited this page Feb 1, 2020 · 5 revisions

Changes in the structure of navigation.

  • Tables containing the navigation structure were renamed: SCREEN_VIEW_GROUP_DATA to NAVIGATION_VIEW, SCREEN_VIEW_GROUP to NAVIGATION_GROUP. Attributes of these tables and constraints are also changed. If you wish to change core.xml, changelog can be copied from the archetype module (by copying a file or by dropping old tables and copying new changesets within the release changelog).
  • The delegation functionality has been removed. The DELEGATION, DELEGATION_VIEW, DELEGATION_VIEW_GROUP tables, and related constructs can be deleted.
  • The logic for creating navigation in screen.json files has been changed. Main changes - now there can be no less than 2 daughters in a category, the id field is removed, categoryName is replaced with title, the optional defaultView attribute is added, the optional hidden attribute is added. Examples of screen.json files can be found in the archetype. More details in the project wiki https://github.com/tesler-platform/tesler/wiki/Metadata.-Navigation.
  • Changes in the contract with the ui: in addition to the changes that affected screen.json, the id field appeared in the contract - a view the natural key in the format screenName/outerGroupSequence/innerGroupSequence/viewName, for example, doc/1/1/someView. It can be used, for example, to display the current navigation branch (ala breadcrumbs)
  • The contract was changed according to the changes on the back. It is assumed that in the client ui application, you need to rewrite the menu display functions according to the new contract.

Support for 2 or more entityManagerFactory in one application.

  • Fixed a typo in the package name io.tesler.model.core.conveter. Check usage in your code.
  • Removed the explicit link to User in BaseEntity. Replaced by Long, it is necessary to correct in the client application where getters and setters for this field are explicitly used
  • Removed the tie for User and Department in other entities (Responsibilities, FieldComment, ViewLayout). Check usage.
  • Marked some of the JpaDao methods as Deprecated. Check usage.
  • Moved the woAutoFlush method from jpaDao to TransactionService.
  • Added the name of the beans to PersistenceJPAConfig.
  • In terms of the methods that operate on the transaction, replaced the injection of one EntityManager with a collection. It should not break functionality when working with one EntityManager, but it is better to check.