Jmix 0.9: Pre-release Version
Jmix 0.9 is the last pre-release branch that should be considered as 'almost stable.' We also deliver the latest version of the companion development tool for the framework; Jmix Studio: 0.9.1-202.
Join the DZone community and get the full member experience.Join For Free
In this release, we have frozen all major APIs: data model definition, data access layer, and security subsystem. They will probably remain the same in Jmix 1.0. Therefore, 0.9 can be considered as a good version for MVP development, and we expect that migration to 1.0 will be near trivial.
Let’s have a look at the most noticeable features in this version in various framework areas.
The first thing that should be mentioned: you can create different types of projects with Jmix. In version 0.9, Studio provides three templates for your Jmix projects:
- Application — to create a new Jmix application.
- Theme — to create a CSS theme for your application. A theme can be installed as an add-on
- Widget — this project type simplifies a custom widget creation.
To assist with project development, the Studio provides a specialized tool window. It can help with exploring Jmix-specific configuration files, navigate through the data model, configure data stores, and many other things.
The framework core is based on Spring Boot 2.4.2, and we are planning to update it to the latest version — 2.4.4 in Jmix 1.0, needless to say, the update process will not stop in the future versions of the framework.
As it has already been announced, Jmix uses Liquibase for the database update process. The framework generates database update scripts based on data model changes, similar to CUBA. But in contrast to the predecessor, the scripts are in XML format now, and the same script set can be applied to different database types.
The experienced CUBA developers will definitely notice the explicit definition of the
User class in the application code, which may be unusual to them. This is a big change compared to the CUBA Platform — we decided to generate key user management functionality classes for every application, to make it simpler to extend or override if needed.
At the moment, all UI components are converted to use the Jmix framework’s API and ready for the stable release. Just a reminder: in Jmix, Backoffice UI is a part of the main project, there is no separation into
web modules anymore.
By default, the generated Jmix project contains Backoffice UI. It is added as a dependency, and you can remove it if you don’t need it. Familiar wizards for screen code generation stay in the Studio, so you will be able to create CRUD screens for your application just in a few clicks as before.
The React UI client generator integration has been significantly improved. We continue developing libraries to simplify ReactJS development with Jmix. Now you can use two libraries: Jmix React Core — to work with Jmix entities and invoke the services and Jmix React UI — a set of UI components for the user interface development.
ReactJS client customization is simpler than before. Similar to Jmix Backoffice UI themes, you can create themes for the front-end client.
The following add-ons are available on the Jmix marketplace now:
- REST API
- Dynamic Attributes
- Entity Log
- Entity Inspector
We continue working hard on add-ons adoption, you can expect to see Jmix 0.9 compatible Charts and, probably, Reports add-ons in the marketplace soon.
If you think about adopting Jmix, now is a good time to start doing that. API is stable, so you won’t need to reimplement your MVP completely because of breaking changes.
Meanwhile, you can enjoy the updated core that allows you to use Spring Boot starters, better deployment options, including Docker image creation, and keep good old CUBA development speed.
Opinions expressed by DZone contributors are their own.