Luis Lima created JBIDE-19761:
---------------------------------
Summary: Hibernate Tools DelegatingReverseEngineeringStrategy not working
Key: JBIDE-19761
URL:
https://issues.jboss.org/browse/JBIDE-19761
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: hibernate
Environment: Eclipse Luna
Reporter: Luis Lima
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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)