Migration from 13 to version 14
A migration to RapidClipse 14 consists of multiple steps. These mostly focus on the migration to Hibernate ORM 6.
Step 1 - Preparation:
-
Download the latest RapidClipse IDE and extract it to a folder of your choice.
-
Create a new workspace.
-
Import your project into this workspace and create a new branch to perform the migration.
-
Check all basic configurations within the new IDE, some examples below:
-
JDK versions of your IDE
-
Export/import your database connections from your old IDE to the new one.
-
Copy your code formatter settings
-
Install all of your previous plugins such as JRebel.
-
Install a suitable application server such as Tomcat 10.1.
-
-
Make sure there are no compiler errors in your project.
Step 2 - Automatic migration:
-
There are two different steps that has to be done for the automatic part of the migration. Both popups should appear after importing an old project or when you bind an old workspace.
-
Update workspace
-
Update RapidClipse Framework
-
-
You should first run the "Update Workspace" without closing the "Update RapidClipse Framework"
-
After the workspace has been updated you can directly start "Update RapidClipse Framework"
-
In case you missed the two popups you can start both procedures as follows:
-
Right click Projekt → RapidClipse → Update Project
-
Menubar - Help → Check for Framework Updates
-
-
You will see following changes after migration
-
POM.xml should be updated
-
rap-server-core updated to version 14.0.0 or 14.0.0-SNAPSHOT
-
vaadin-maven-plugin updated to version 24.4.7
-
-
-
It is also possible that some compiler errors may occur after migration. See "Manual migration" for further details.
Step 3 - Manual migration :
-
You’ll need to switch Hibernate imports from javax.persistence.* to jakarta.persistence.*
-
Disable the JPA validation, via Right click Project → Properties - "Validation" → Remove both ticks next to "JPA Validator"
-
After this step, execute a Maven update.
-
-
Add JPA modelgen into your project
-
+
-
<build> <plugins> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.13.0</version> <configuration> <annotationProcessorPaths> <path> <groupId>org.hibernate.orm</groupId> <artifactId> hibernate-jpamodelgen </artifactId> <version>6.4.0.Final</version> </path> </annotationProcessorPaths> </configuration> </plugin> </plugins> </build>
-
Update Persistence.xml
-
All properties need to be switched from javax to jakarta
-
Perform an dialect update
-