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

Hibernate Tools DelegatingReverseEngineeringStrategy not working

    XMLWordPrintable

Details

    • Sprint #3 May 2015
    • Hide

      I'm linking to a small Eclipse project that has this issue.

      • Go to the database folder and run the runDBServer.bat file to start the database.
      • Import the project into Eclipse, and run the Hibernate Code Generation Configuration named Code_Generation_Quick_Configuration (this is linked to the TestHibernateQuick console configuration.
      • The error I described above show happen.
      • You can see the class util.ReverseEngineering does nothing.

      You can download the project files here:
      http://s000.tinyupload.com/index.php?file_id=02745057366838445997

      Show
      I'm linking to a small Eclipse project that has this issue. Go to the database folder and run the runDBServer.bat file to start the database. Import the project into Eclipse, and run the Hibernate Code Generation Configuration named Code_Generation_Quick_Configuration (this is linked to the TestHibernateQuick console configuration. The error I described above show happen. You can see the class util.ReverseEngineering does nothing. You can download the project files here: http://s000.tinyupload.com/index.php?file_id=02745057366838445997

    Description

      I'm using the HibernateTools plugin (latest version) with Eclipse Luna and keep getting an error when trying to use my own reverse engineering implementation class. Every time I try to generate my classes I get this exception from Eclipse:

      org.hibernate.console.HibernateConsoleRuntimeException: java.lang.IllegalAccessException: Class org.jboss.tools.hibernate.proxy.ServiceProxy can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private" java.lang.IllegalAccessException: Class org.jboss.tools.hibernate.proxy.ServiceProxy can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private"

      Seems there's some incompatibility with ServiceProxy and the ReverseEngineeringStrategyUtil class as it seems to be trying to access a method that's no longer private. The stacktrace doesn't really provide any info other than this so hopefully this is a known issue and someone might be able to suggest how to fix it.

      It's not related to my code since right now my ReverseEngineeringStrategy implementation is doing nothing ie:

      @Override
      public String tableToClassName(TableIdentifier tableIdentifier)

      { return super.tableToClassName(tableIdentifier); }

      My libraries are 4.3 (4.3.1.CR1 more specifically) and I also have the console configuration set to that version.

      Here's my maven dependency:
      <dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-tools</artifactId>
      <version>4.3.1.CR1</version>
      </dependency>

      And always get the error.

      Attachments

        Activity

          People

            kaers@redhat.com Koen Aers
            llima2 Luis Lima (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: