hibernate 出现Could not parse mapping document from resource 报错

<!-- 映射文件的根节点 -->  
<hibernate-mapping >  
    <!--  
        对象关系映射的开始:class元素表示类和数据库中的表的映射关系。  
        name属性指定持久化类(或者接口)的Java全限定名;  
        table属性指定要映射的对应的数据库表名,如果省略,则以name作为表名  
     -->  
  
    <class name=" com.hibernate.customer.customer" table="customer">  
     <!--  
        持久化类对象的对象标识符(OID)和表的主键的映射关联:  
        name属性指定类中作为OID的属性名;  
        column属性表中主键字段的名字;如果省略,则以name作为字段名  
      -->  
      
        <id name="id" column="id">  
            <!-- 指定对象标识符生成器:class属性指定生成器的类别名 -->  
            
        </id>  
        <!--   
        
            普通属性的映射:  
            name属性:属性的名字,以小写字母开头;  
            column属性:对应的数据库字段名.如果省略,则以name作为字段名  
            type属性:指定Hibernate的映射类型、如果省略,则自动匹配  
        -->  
        <property name="username" column="username"/>  
        <property name="password" column="password" />  
    </class>  
  

</hibernate-mapping> 


标红的地方 最好用包的路径名来展示

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:又报了另一个error $ make LD cdec /opt/compiler_tool/arm/armv7l-tizen-linux-gnueabi/bin/../lib/gcc/armv7l-tizen-linux-gnueabi/4.9.2/../../../../armv7l-tizen-linux-gnueabi/bin/ld: cannot find /lib/ld-linux.so.3: No such file or directory collect2: error: ld returned 1 exit status makefile:48: recipe for target 'cdec' failed make: *** \[cdec\] Error 1 /opt/compiler_tool/arm/armv7l-tizen-linux-gnueabi/lib$ ls gcc libarmv7l-tizen-linux-gnueabi-sim.a 。 引用\[2\]:the code model could not parse an included file,which might lead to incorrect code completion and highlighting,for example 。 引用\[3\]:4.make clean 后,执行make , 没想到gcc 命令 又不见了。。。 $ make PATH is /usr/bin:ATH CC cplay.c make: arm-none-linux-gnueabihf-gcc: Command not found makefile:57: recipe for target 'cplay.o' failed make: *** \[cplay.o\] Error 127 。 问题:could not parse makefile 回答: "could not parse makefile"是一个错误信息,它表示在解析makefile时出现了问题。这可能是由于多种原因引起的。其中一种可能是makefile中的语法错误,导致解析器无法正确解析。另一种可能是makefile中引用的文件无法找到,比如在引用的文件路径中找不到所需的库文件。此外,还可能是由于环境变量配置不正确导致的,比如gcc命令无法找到。要解决这个问题,可以检查makefile中的语法错误,确保引用的文件路径正确,并检查环境变量配置是否正确。如果问题仍然存在,可能需要进一步调查和排除其他可能的原因。 #### 引用[.reference_title] - *1* *3* [记录一次makefile 异常问题解决方法](https://blog.csdn.net/dreamDay2016_11_11/article/details/131010400)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Qt creater警告:the code model could not parse an included file](https://blog.csdn.net/u012686154/article/details/85243010)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值