Hi all
I am having tables
Emp (empno, ename, designation, salary, deptid)
Dept(deptid, dname,location)
I am trying to create a composite id for emp mapping file
here is my mapping file
<?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="Emp" table="Administrator.EMPP">
<composite-id>
<key-property name="empno" column="EMPNO"/>
<key-property name="dept_id" column="dept_id"/>
</composite-id>
<property name="ename" column="ENAME" type="string"/>
<property name="designation" column="DESIGNATION" type="string"/>
<property name="salary" column="SALARY" type="java.lang.Float"/>
</class>
</hibernate-mapping>
I am throwing the follwing error
12:57:45,444 ERROR XMLHelper:48 - Error parsing XML: XML InputStream(26) The content of elements must consist of well-formed character data or markup.
12:57:45,454 ERROR Configuration:296 - Could not configure datastore from input stream
org.dom4j.DocumentException: Error on line 26 of document : The content of elements must consist of well-formed character data or markup. Nested exception: The content of elements must consist of well-formed character data or markup.
at org.dom4j.io.SAXReader.read(SAXReader.java:355)
|