Results 1 to 2 of 2
  1. #1
    niteangell21 is offline Member
    Join Date
    Sep 2010
    Rep Power

    Default xml mapping list error

    Guys, i get this error when trying to map an ArrayList using xml.

    359 [AWT-EventQueue-0] ERROR org.hibernate.util.XMLHelper - Error parsing XML: XML InputStream(15) The content of element type "list" must match "(meta*,subselect?,cache?,synchronize*,comment?,ke y,(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".

    this my xml file.

    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    <hibernate-mapping package = "domain">
        <class name="Customer" table="customer">
            <id name="id" column="id" type="java.lang.Integer" >
                <generator class="increment"/>           
            <list name="task" inverse="true" cascade="all">
                <key column="id" not-null="true" />         
                <one-to-many class ="Task" />
            <property name="name" column="name" type="java.lang.String" ></property>

    where am i doing wrong?
    Last edited by Fubarable; 09-27-2010 at 10:58 PM. Reason: Moderator Edit: Code tags added

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    Code tags added above to help increase readability of the XML data. OP, please read the first link in my signature below to learn how to use these yourself.

    Much luck on solving your problem!

Similar Threads

  1. Castor Mapping - Help
    By roddy in forum XML
    Replies: 1
    Last Post: 08-27-2009, 02:25 AM
  2. Replies: 3
    Last Post: 03-19-2009, 05:01 AM
  3. xml mapping error with JPA in RAD, RSA
    By ishakteyran in forum Other IDEs
    Replies: 0
    Last Post: 02-05-2009, 09:00 PM
  4. xml mapping error with JPA
    By ishakteyran in forum XML
    Replies: 0
    Last Post: 02-05-2009, 08:59 PM
  5. Replies: 1
    Last Post: 11-11-2008, 09:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts