-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Eclipse plugin. Error generating peers from Oracle classes.
PostPosted: Mon Oct 01, 2007 4:24 am 
Newbie

Joined: Mon Oct 01, 2007 3:39 am
Posts: 11
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 01, 2007 12:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you have specified a util class for the reverse engineering strategy.

Either leave it empty or put a classname for your reverse engineering class - it is completely optional.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 4:11 am 
Newbie

Joined: Mon Oct 01, 2007 3:39 am
Posts: 11
Thank you very much. I found this in the meanwhile. My fault.

Greetz,
Fabio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.