-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SchemaExport Issues
PostPosted: Thu Mar 24, 2005 10:10 am 
Newbie

Joined: Thu Mar 24, 2005 10:07 am
Posts: 14
I'm trying to generate sql tables from my hbm.xml's and and am having trouble. I get NO errors in my ant tasks but it also doesnt build the tables in my MS Sql server.

build.properties
---------------------
<target name="schema"
description="Generate DB schema from the O/R mapping files">
<!-- Teach Ant how to use Hibernate's schema generation tool -->
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="project.class.path"/>
<schemaexport properties="${classesSrcPath}/hibernate.properties"
quiet="no" text="no" drop="no" >
<fileset dir="${classesSrcPath}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target>

hibernate.properties
-------------------------
hibernate.dialect=org.hibernate.dialect.SQLServerDialect
hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver
hibernate.connection.url=jdbc:microsoft:sqlserver://192.168.100.22:1433/PCMExchange
hibernate.connection.username=sa
hibernate.connection.password=okterrific


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.