-->
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: middlegen-hibernate error
PostPosted: Mon Dec 01, 2003 8:03 pm 
Newbie

Joined: Mon Dec 01, 2003 7:32 pm
Posts: 7
I downloaded middlegen-hibernater2.zip. After I set this up, I made a little change to point it my own database (oracle). I manually run the sql scripts provided (airline). Double checked the three tables are in db. Then I ran the build.xml. I got error:

BUILD FAILED
file:D:/projects/wmrs-new/build.xml:157: middlegen.MiddlegenException: The database doesn't have any table named reservations. Please make sure the table exists. Also note that some databases are case sensitive.

Double check the case of the table name, still with error.

My goal is to use this middlegen-hibernate to generate hibernate mapping file. And then use hbm2java to generate the java classes, which will serve as my persistence classes (as the entity bean replacements). Does someone have working build.xml which includes all this? I'd like to learn how to do this.

Thanks.

QD


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 01, 2003 8:30 pm 
Beginner
Beginner

Joined: Fri Nov 28, 2003 3:45 am
Posts: 23
Location: malaysia
Hi,


could you pls relook at the build file of the middlegen especially on the database build script to be use , by default the build file point to the hqsql data base config , alter the setting of creation of the tables ,or DB . As for me, I usually take the short cut of having manually creating the database ,and then make necessary alteration to the build setting to have table auto build through ant script.



Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 02, 2003 4:28 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The demo the release includes has some support for other database but I only test it on the included HSQLDB. Having said that, you can (as tsg26 said) create the tables manually then proceed.

You could just make it point to your database and try it out rather than setup the tables for the demo. Also, there is a release 3 which you should be using.


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.