Results 1 to 2 of 2
Thread: xml mapping list error
- 09-27-2010, 10:54 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 40
- Rep Power
- 0
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" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping package = "domain"> <class name="Customer" table="customer"> <id name="id" column="id" type="java.lang.Integer" > <generator class="increment"/> </id> <list name="task" inverse="true" cascade="all"> <key column="id" not-null="true" /> <one-to-many class ="Task" /> </list> <property name="name" column="name" type="java.lang.String" ></property> </class> </hibernate-mapping>
where am i doing wrong?Last edited by Fubarable; 09-27-2010 at 10:58 PM. Reason: Moderator Edit: Code tags added
-
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
-
Castor Mapping - Help
By roddy in forum XMLReplies: 1Last Post: 08-27-2009, 02:25 AM -
Re-usable, dynamic pattern for error code-message mapping
By Algatron in forum Advanced JavaReplies: 3Last Post: 03-19-2009, 05:01 AM -
xml mapping error with JPA in RAD, RSA
By ishakteyran in forum Other IDEsReplies: 0Last Post: 02-05-2009, 09:00 PM -
xml mapping error with JPA
By ishakteyran in forum XMLReplies: 0Last Post: 02-05-2009, 08:59 PM -
Hibernate mapping error Provided id of the wrong type with composite id
By zigzag in forum JDBCReplies: 1Last Post: 11-11-2008, 09:18 PM
Bookmarks