I don;t want to use an id. My primary key will be that tracking number. How do I avoid this error?
Caused by: org.xml.sax.SAXParseException: The content of element type "class" must match "(meta*,(cache|jcs-cache)?,(id|composite-id),discriminator?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,(subclass*|joined-subclass*))".
<?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="gsptech.autopay.biz.MyAWB" table="AWB2">
<property name="trackingNumber" column="TRACKING_NBR" type="string" length="12" />
<property name="shipTimestamp" column="SHIP_TMSP" type="timestamp" />
<property name="originationLocID" column="ORIGINATION_LOC_CD" type="string" length="5" />
<property name="docNonDocFlag" column="DOC_NONDOC_FLG" type="character" />
<property name="dimWeight" column="DIM_WEIGHT_NBR" type="long" />
<property name="recipient" column="PACKAGE_RECIPIENT_NM" type="string" length="50" />
</class>
</hibernate-mapping>
|