Hello all,
i'm trying to make a reverse engineering of a group of classes on an Oracle database.
I want to generate the peers with hibernate to access the classes from java.
I use the following version: org.hibernate.eclipse_3.2.0.beta9a
Eclipse version: Version: 3.2.2 - Build id: M20070212-1330
I installed the plugin in Eclipse, created a configuration:
driver: oracle.jdbc.driver.OracleDriver hibernate.dialect: org.hibernate.dialect.Oracle9Dialect connection url: jdbc:oracle:thin:@vmsrv03:1521:RIS3
I can connect with the database and i can define the list of the tables which i want to Reverse-Engineer.
then i created a new Run Configuration. Here the most important parameters in the run configuration:
reveng.xml: \Hl7Integration\config\hibernate.reveng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<table-filter match-name="GROUPMAPPING"/>
<table-filter match-name="HL7FIELD"/>
<table-filter match-name="HL7FIELDSUBFIELD"/>
<table-filter match-name="HL7GROUP"/>
<table-filter match-name="HL7MESSAGE"/>
<table-filter match-name="HL7MESSAGESEGMENT"/>
<table-filter match-name="HL7SEGMENT"/>
<table-filter match-name="HL7SEGMENTFIELD"/>
<table-filter match-name="HL7SUBFIELD"/>
<table-filter match-name="MESSAGEMAPPING"/>
<table-filter match-name="RULE"/>
<table-filter match-name="SEGMENTMAPPING"/>
<table-filter match-name="SYNCROMEDFIELD"/>
<table-filter match-name="SYNCROMEDFIELDTYPE"/>
<table-filter match-name="SYNCROMEDGROUP"/>
<table-filter match-name="SYNCROMEDGROUPSEGMENT"/>
<table-filter match-name="SYNCROMEDMESSAGE"/>
<table-filter match-name="SYNCROMEDMESSAGESEGMENT"/>
<table-filter match-name="SYNCROMEDSEGMENT"/>
<table-filter match-name="VALIDATIONRULE"/>
</hibernate-reverse-engineering>
reveng.strategy: org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil
When i run the tool i get the following exception:
org.hibernate.console.HibernateConsoleRuntimeException: Could not create or find org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with default no-arg constructor
java.lang.IllegalAccessException: Class org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private"
java.lang.IllegalAccessException: Class org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate can not access a member of class org.hibernate.cfg.reveng.ReverseEngineeringStrategyUtil with modifiers "private"
It seems i'm missing some parameters or i'm specifying the wrong "strategy" class.
Somebody can help me?
thank you,
Fabio
|