-->
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.  [ 2 posts ] 
Author Message
 Post subject: Having trouble with SchemaUpdate tool (<set>)
PostPosted: Fri Mar 04, 2005 1:58 am 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
Hibernate 2.1.8

Hi, I'm running the SchemaExport Ant task, and it takes this error:

Code:
(util.XMLHelper                      48  ) Error parsing XML: XML InputStream(35) The content of element type "set" is incomplete, it must match "(meta*,(cache|jcs-cache)?,key,(element|one-to-many|many-to-many|composite-element|many-to-any))".


...when parsing this mapping document:

Code:
<?xml version="1.0"?>

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

<hibernate-mapping>
    <class
        name="com.wrinkledog.SPAR.model.Project"
    >

        <id
            name="id"
            column="id"
            type="java.lang.Long"
        >
            <generator class="native">
            </generator>
        </id>

        <property
            name="name"
            type="java.lang.String"
            column="name"
        />

        <set
            name="assets"
            lazy="false"
            inverse="false"
            cascade="none"
            sort="unsorted"
        >

              <key
                  column="id"
              >
              </key>

              <one-to-many
                  class="com.wrinkledog.SPAR.Asset"
              />
        </set>

        <!--
            To add non XDoclet property mappings, create a file named
                hibernate-properties-Project.xml
            containing the additional properties and place it in your merge dir.
        -->

    </class>

</hibernate-mapping>


...and for some reason I'm just not seeing what the problem is.

Can anyone help?

Thanks a lot,
Mark


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 3:11 pm 
Regular
Regular

Joined: Thu Apr 15, 2004 1:12 pm
Posts: 55
I think this is solved...

My hibernate.cfg.xml includes <mapping> elements. Also, my invocation of the schemaexport task included a <fileset> specifying the mapping files. I got rid of the <fileset>, and the schemaexport ran.


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

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.