5 Replies Latest reply on May 6, 2015 6:51 AM by Koen Aers

    HibernateTools - DelegatingReverseEngineeringStrategy Error

    Luis Lima Newbie

      Hi,

       

      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);

          }

       

      And always get the error. Any help is appreciated.

       

      Thanks in advance