1

当我调用我的 servlet 时,我总是收到此错误消息...

failed:org.hibernate.InvalidMappingException: Could not parse mapping document from resource CarDetail.hbm.xml

CarDetail.hbm.xml:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
        "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="at.opendata.entitys">      
    <class name="CarDetail" table="cardetail">
        <id name="id" column="detail_id">
            <generator class="increment"/>
        </id>
        <property name="gone" type="time"/>
        <property name="back" type="time"/>
        <property name="currentdatetime" type="timestamp"/>
        <property name="coordinates" type="org.hibernate.spatial.GeometryType" column="coordinates"/>
        <many-to-one name="car" column="car_id" class="Car" not-null="true"/>       
    </class>
</hibernate-mapping>

为什么我会收到此错误消息?在同一目录中找到另一个映射文件..

4

0 回答 0