SchemaExportTask « Schema « JPA Q&A





1. Hibernate SchemaExportTask Problem    coderanch.com

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 ...

2. Help with SchemaExportTask    forum.hibernate.org

I have spent hours on this one, and with no luck. For some reason, the SchemaExportTask class cannot be found in the jar when I reference it. I have opened the jar and verified that the class is there and that I am referencing it properly. I get the following error when I run the ant task: "taskdef class net.sf.hibernate.tool.hbm2ddl.SchemaExportTask cannot ...

4. Problem With SchemaExportTask and CodeGenerator    forum.hibernate.org

I'm just starting with Hibernate. I'm going through Gavin King's TSS "Introduction To Hibernate" http://www.theserverside.com/resources/articles/Hibernate/IntroductionToHibernate.pdf document. I've modified his Team.hbm.xml and Player.hbm.xml to use Oracle sequences for IDs. I've got an Ant build script that I reuse for all my projects, so I added in a schema export Ant task that uses net.sf.hibernate.tool.hbm2ddl.SchemaExportTask, like this: Code:

5. SchemaExportTask    forum.hibernate.org

Hi, Am using Hibernate 2.1, JDK 1.4.2, and running the ant task SchemaExportTask, get the following and the ddl is not being generated. Buildfile: D:\eclipseProjs\Hibern8Xmpl\build\build_1.xml db-schema: [schemaexport] log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment). [schemaexport] log4j:WARN Please initialize the log4j system properly. BUILD FAILED: file:D:/eclipseProjs/Hibern8Xmpl/build/build_1.xml:99: Schema text failed: org.dom4j.DocumentException: Error on line 1 of document : Document root element ...

6. SchemaExportTask - config file?    forum.hibernate.org

Hi there, I'm having trouble with the SchemaExportTask in finding its config file. I've currently defined it as such in ANT: I've read in previous threads that the config is a resource and so it's reference is relative to the ANT classpath. My ANT_HOME is c:\Ant, but I'm not sure if that's what was ...

7. Configuration file with SchemaExportTask    forum.hibernate.org

How does one use a .cfg.xml file to configure the SchemaExportTask (as opposed to a .properties file). I tried setting a config attribute, but I keep getting Schema text failed: path/to/file not found But the file is there. Really, it is. It's in the same directory as the properties file it's meant to replace, and when I set the attribute properties ...

9. SchemaExportTask query    forum.hibernate.org

Hi, I am using this task for converting my hbm.xml files to and sql script for SQL Server 2005. My problem is this - my hbm.xml file contains a field which is of type String with length 2147483647. When I run the schemaExportTask, it maps this field to varchar(2147483647). This is incorrect since in SQL Server 2005, varchar cannot have size ...