1. Choose hibernate runtime 6.0/6.1 as default runtime.
2. Create a test project ie. [project] - import this existing as maven project, update deps, this one uses 5.5 libs.
3. Create new package, ie. org.test
4. Create testing classes, ie. [location]
5. Select the package in project explorer
6. Open Context menu, select Source -> generate Hibernate/JPA annotations
7. finish the wizard and verify that jakarta libraries are used for annotations
Actual result: javax libraries are used instead
1. Choose hibernate runtime 6.0/6.1 as default runtime.
2. Create a test project ie. [project] - import this existing as maven project, update deps, this one uses 5.5 libs.
3. Create new package, ie. org.test
4. Create testing classes, ie. [location]
5. Select the package in project explorer
6. Open Context menu, select Source -> generate Hibernate/JPA annotations
7. finish the wizard and verify that jakarta libraries are used for annotations
Actual result: javax libraries are used instead
[project] : https://github.com/jbosstools/jbosstools-hibernate/tree/main/itests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/mvn-hibernate55-ent
[location] : https://github.com/jbosstools/jbosstools-hibernate/tree/main/itests/org.jboss.tools.hibernate.ui.bot.test/resources/classes
---
Description
Generating JPA/hibernate annotation uses javax for persistence classes instead of jakarta. I am using hibernate runtime 6.0+.