File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes hbm2ddl ant task + Oracle11g XE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hbm2ddl ant task + Oracle11g XE" Watch "hbm2ddl ant task + Oracle11g XE" New topic
Author

hbm2ddl ant task + Oracle11g XE

Danny Talboom
Greenhorn

Joined: Dec 02, 2009
Posts: 1
Hello,

I'm taking my first steps in Hibernate annotations. All was going well, until I configured my ant build file to generate the actual database. It created the right statements (they work in sql developer), but for some reason the hbm2ddl task cannot create the tables. The oracle message is as general as can be, so no luck there either...

This is the output of my ant script :


This oracle error message is generated for the creation of all tables, so I don't think it's related to any major flaws in my annotations.'
Has anyone experienced similar problems with Oracle11g XE?


This is the mapping file



The jars I'm using are :
ejb3-persistence
freemarker 2.3.18
hibernate annotations 3.0beta2
ojdbc6.jar
slf4j-api-1.6.4
hibernate 4.0.1

The full build.xml



with properties file :
 
Don't get me started about those stupid light bulbs.
 
subject: hbm2ddl ant task + Oracle11g XE
 
Similar Threads
Incorrect syntax near the keyword
Hibernate configuration issue: connection provider or hibernate.dialect issue
Java Security Exception
Transaction is not being committed
How to user Struts Tags in a WebApplication