-->
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.  [ 4 posts ] 
Author Message
 Post subject: MiddlegenException
PostPosted: Wed Jul 02, 2008 6:48 am 
Newbie

Joined: Wed Jul 02, 2008 5:26 am
Posts: 2
Hi,

I download the Middlegen-Hibernate-r5.zip; from that I try to run the build.xml; it is able to generate the corresponding .hbm.xml file successfully.

When I try to modify the following property from this
--------------------------------------------------------------------------
<!DOCTYPE project [
<!ENTITY database SYSTEM "file:./config/database/hsqldb.xml">
]>
----------------------------------------------------------------------------
to
-------------------------------------------------------------------------------
<!DOCTYPE project [
<!ENTITY database SYSTEM "file:./config/database/oracle.xml">
]>
---------------------------------------------------------------------------
in build.xml I am getting the Middlegen exception

and oracle.xml has the following entries
--------------------------------------------------------------------------------
<property environment="env"/>

<property name="database.script.file" value="${src.dir}/sql/${name}-oracle.sql"/>
<property name="database.driver.file" value="D:\backup\Middlegen-Hibernate-r5\Middlegen-Hibernate-r5\lib\classes12.jar"/>
<property name="database.driver.classpath" value="${database.driver.file}"/>
<property name="database.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="database.url" value="jdbc:oracle:thin:@10.104.27.236:1521:nd"/>
<property name="database.userid" value="new1"/>
<property name="database.password" value="new1"/>
<property name="jboss.datasource.mapping" value="Oracle10g"/>
--------------------------------------------------------------------------------

After that when I try to run the build.xml I am getting the following exception:
--------------------------------------------------------------------------
D:\backup\Middlegen-Hibernate-r5\Middlegen-Hibernate-r5>ant
Buildfile: build.xml
Warning: 'file:./config/database/oracle.xml' in D:\backup\Middlegen-Hibernate-r5\Middlegen-Hibernate-r5\build.xml should be expressed simply as './config/database/oracle.xml' for compliance with other XML tools

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[echo] Class path = D:\backup\Middlegen-Hibernate-r5\Middlegen-Hibernate-r5

[middlegen] (middlegen.Middlegen 350 ) Registering plugin simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin plugin->middlegen.Plugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin hibernate->middlegen.plugins.hibernate.HibernatePlugin
[middlegen] Database URL:jdbc:oracle:thin:@10.104.27.236:1521:nd

BUILD FAILED
D:\backup\Middlegen-Hibernate-r5\Middlegen-Hibernate-r5\build.xml:136: middlegen.MiddlegenException: The database doesn't have any table named TRIGGER_CONDITION. Please make sure the table exists. Also note that some databases are case sensitive.

Found the following tables:
----


Total time: 3 seconds
--------------------------------------------------------------------------

How can I resolve this? Can anyone help me in this regarding?

Thanks in Advance,
Jeevan R


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 12, 2008 7:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Middlegen is getting really old - we recommend Hibernate Tools these days.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Reg - Middlegen Exception
PostPosted: Mon Jul 14, 2008 1:10 am 
Newbie

Joined: Wed Jul 02, 2008 5:26 am
Posts: 2
Hi Max,

Max thanks for your input. Please give me a small intoduction about Hibernate tools and where can I get the tutorial / document for Hibernate Tools?

Thanks in Advance,
R.Jeevan


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 14, 2008 3:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Go to http://tools.hibernate.org there is links to it all.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.