-->
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 doesn't read my mappings (Please Help)
PostPosted: Wed Oct 08, 2003 4:54 pm 
Pro
Pro

Joined: Wed Oct 08, 2003 10:31 am
Posts: 247
I executed the following command:

java net.sf.hibernate.tool.hbm2ddl.SchemaExport --output=cat.ddl --text hibernate.cfg.xml

and no error appears. I have the "Cat.hbm.xml" file in the same directory.
It keeps creating the "cat.ddl" file but with nothing in it (zero length). Is he reading the "mapping" section?
Please help.

Here's my hibernate.cfg.xml:

<?xml version='1.0'?>

<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

<hibernate-configuration>

<session-factory>

<property name="show_sql">false</property>

<mapping resource="Cat.hbm.xml"/>

</session-factory>

</hibernate-configuration>


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.