Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28835

Generating JPA/Hibernate Annotation uses javax library instead of jakarta for hibernate runtime 6.0+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • 4.30.x
    • 4.26.0.Final
    • hibernate
    • None
    • Hide

      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

      Show
      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+.

      Attachments

        Activity

          People

            kaers@redhat.com Koen Aers
            odockal@redhat.com Ondrej Dockal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: