This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate SchemaExportTask Problem

 
Sara Yazdani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem.
It just couldn't find my .hbm files

I changed the hbm fileset in this way:



and It's resolved
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic