This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate SchemaExportTask Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate SchemaExportTask Problem" Watch "Hibernate SchemaExportTask Problem" New topic

Hibernate SchemaExportTask Problem

Sara Yazdani

Joined: Jul 09, 2010
Posts: 2
Hi everybody,
I'm new in Hibernate and I'm trying to run The HelloWorld example of Java Persistence with Hibernate book.
I use Oracle XE Database and NetBeans IDE.
I want to Export the Database Schema. As the Hibernate tool package has changed in new versions, I changed the ant target to use the new version of SchemaExportTask comparing to the scripts in the book.
this is my build.xml file:

and this is my file?

the .hbm.xml files are in appropriate path along with the javaBeans class

when I run the SchmaExport Target, I get no error and the last message is: schema export complete
But the helloworld-ddl.sql file is empty and no DB Object is created.

Thanks in advance
Sara Yazdani

Joined: Jul 09, 2010
Posts: 2
I found the problem.
It just couldn't find my .hbm files

I changed the hbm fileset in this way:

and It's resolved
I agree. Here's the link:
subject: Hibernate SchemaExportTask Problem
It's not a secret anymore!