GeeCON Prague 2014*
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


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate SchemaExportTask Problem" Watch "Hibernate SchemaExportTask Problem" New topic
Author

Hibernate SchemaExportTask Problem

Sara Yazdani
Greenhorn

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 hibernate.properties 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
Greenhorn

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
 
GeeCON Prague 2014
 
subject: Hibernate SchemaExportTask Problem