解决方法:
class路径没写正确。
有三个地方需要注意
1、<hibernate-mapping package="">
2、<class name="com.model.RoleInfo">
3、<set name="userInfos" table="ROLEOFUSER" inverse="false">
<key column="ROLEID">
</key>
<many-to-many column="USERID" class="com.model.UserInfo" />
</set>
建议:最好写在第一个地方,这样下面就可以不用写很长的包名了
- 浏览: 499743 次
- 性别:
- 来自: 沈阳
文章分类
- 全部博客 (437)
- Windows设置 (2)
- oracle数据库 (39)
- bug--jsp (4)
- j2se (13)
- js (40)
- bug-tomcat不能启动程序 (1)
- Hibernate (29)
- eclipse (20)
- java (65)
- 设计模式 (6)
- bug (18)
- PL/SQL (11)
- 前台 (5)
- 杂谈 (25)
- UML (1)
- jdbc编程 (2)
- 技术调研 (1)
- 数据通信 (2)
- ios (1)
- servlet自学笔记 (10)
- tomcat (9)
- SQL学习笔记 (6)
- java工具 (1)
- 数据库设计 (4)
- javascript (10)
- jsp (11)
- struts (17)
- ajax (7)
- linix/Unix (6)
- 资源 (3)
- spring (14)
- 算法 (5)
- 计算机网络 (2)
- http (5)
- c++ (2)
- web应用 (3)
- jvm (5)
- java中的字符编码 (14)
- java代码库 (2)
- classloader (1)
- 读书笔记 (1)
- c (1)
- 开源软件 (1)
- svn (1)
- AOP (1)
- java序列化 (1)
- 多线程 (4)
- The legendary programmers (1)
- Apache http Server (1)
- html tag (3)
- struts1.X学习笔记 (5)
- buffalo (1)
- 自己收藏 (0)
- TOEFL(IBT) (1)
- 网络翻墙 (0)
- 编译原理 (1)
- 书籍推荐 (1)
- css (10)
- javaee环境搭建资料 (1)
- 开源工具 (1)
- 美国生活 (1)
- spring自学 (3)
- log4j (3)
- 算法与数据结构 (5)
- 病毒,插件处理大全 (1)
- flex (2)
- webservice (1)
- git (7)
- cs (1)
- html (4)
- javaee (6)
- 开车 (0)
- springmvc (3)
- 互联网架构 (2)
- intellij idea (18)
- maven (15)
- mongodb (2)
- nginx (1)
- react (3)
- java基础例子 (2)
- springboot (2)
- 培训 (5)
- mysql (3)
- 数据库 (3)
- 生活 (2)
- intellij (3)
- linux (2)
- os (3)
最新评论
-
潇洒天涯:
[color=blue][color=cyan] ...
oracle 通过 nvl( )函数sql 查询时为 空值 赋默认值 -
hekai1990:
受教了..
oracle中的varchar2
发表评论
-
Hibernate:Envers 审计
2018-09-17 23:57 516https://blog.csdn.net/Silen ... -
maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.
2017-05-23 21:58 894出现这种错误,通常是由于您已启动了另一个tomcat 进程或 ... -
Unable to find a single main class from the following candidates
2017-05-20 15:12 992[ERROR] Failed to execute goal ... -
【转】intellij idea中的项目怎么显示树形目录
2017-03-13 08:35 2301idea出现这种问题 点击 file → projec ... -
【转】Spring3.3 整合 Hibernate3、MyBatis3.2 配置多数据源/动态切换数据源 方法
2016-12-13 15:07 699http://www.cnblogs.com/hoojo ... -
【转】Spring3 整合Hibernate3.5 动态切换SessionFactory (切换数据库方言)
2016-12-13 15:05 764http://www.cnblogs.com/hoojo ... -
Hibernate中的三种对象状态:
2015-11-15 18:33 413Hibernate中的三种对象状态: 1.瞬时(tr ... -
【转】Hibernate过滤器使用窍门
2015-09-08 17:13 549Hibernate过滤器(filter)是全局有效的 ... -
【转】Hibernate left join(左连接)
2015-08-26 17:27 1972如果是内连接的多表查询可以不用join关键字,在where ... -
【转】Hibernate 所有缓存机制详解
2015-08-26 14:50 649hibernate提供的一级缓存 hibernate是一个 ... -
【转】Hibernate中session的clear(),flush(),evict()方法详解
2015-08-26 14:22 10411.Clear 方法 无论是Load 还是 Get ... -
object references an unsaved transient instance - save the transient instance be
2015-04-15 10:17 905在做hibernate保存时出现异常object refer ... -
hibernate映射文件one-to-one 元素属性(转)
2013-01-07 19:13 832one-to-one 元素 属性: name:映射类 ... -
【转】Hibernate中重要对象的详解
2012-12-13 14:18 668★→→SessionFactory (org.hibernat ... -
【转】很详细的spirng+struts+hibernate实例
2012-12-13 14:17 2371本文并不想介绍Struts,Spring,Hiber ... -
【转】Hibernate中id标签
2012-11-19 14:32 838核心提示:Hibernate中,id标签下的可选gener ... -
【转】hibernate动态创建表,修改表字段
2012-10-22 18:50 1048我们知道,hibernate的tool工具中有个包hbm2dd ... -
【转】hibernate many-to-one(多对一)及 cascade(级联)
2012-09-19 16:18 799Model public class User { // ... -
报错:使用hibernate字符串超长
2012-09-13 17:47 1574在使用varchar2类型时必须指定其长度(最小1字节 ... -
包名不同的同名类的hibernate冲突
2012-09-13 14:38 1211在实际开发中,在有类a.b.c.POClass和a.b.c ...
相关推荐
- **REST:** Refers to all records from the current record to the end of the table. - **FIELDS 字段名列表:** Specifies the fields (columns) on which the command operates. - **FOR 条件:** Executes the ...
- **Creating the Character’s Camera**: Setting up a camera to follow the character. - **Game Modes and How to Make Them**: Defining the rules of the game. - **Creating and Receiving Input Events**: ...
- **State**: Refers to the current condition or status of an object, which can be changed by methods and stored in fields. - **Program State**: The overall state of a program, including all objects'...
- **Lvalue:** An expression that refers to a memory location and can appear on the left-hand side of an assignment. - **Rvalue:** An expression representing a value that can appear on the right-hand ...
- **例句**:In manufacturing, tolerance refers to the allowable variation in dimensions or performance of a part. #### 10. Inertial Navigation - **名词**:惯性导航 - **例句**:Inertial navigation ...
- **Option C**: Creating an Identity and Access Management (IAM) User for CloudFront and granting access to the objects in your S3 bucket to that IAM User is not the correct approach as IAM users ...
In C#, `Sign` typically refers to the `Math.Sign` method, which returns an integer that indicates the sign of a number. ```csharp using System; class Program { static void Main() { double num = -...
However, based on the context, we can infer that this refers to the specific functions or capabilities that a system or component must have to meet the defined business and technical requirements....
解决docker报错The push refers to a repository
- **Implicit Implementation**: Implicit implementation occurs when a class implements an interface method without specifying the interface name. - **Explicit Implementation**: Explicit implementation ...
- **Protective Barrier:** In the context of software development, this likely refers to measures or strategies designed to shield systems from external threats such as security breaches or data ...
- **Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array:** 下标指的是数组的出现位置,而索引是从数组开始处的位移(以字节计)。...
- **Definition:** Sensitive data refers to information that is confidential or proprietary in nature, which, if disclosed, could result in legal, financial, or reputational harm to an individual or ...
"RF Microelectronics 2nd" refers to the second edition of the book "RF Microelectronics" authored by Behzad Razavi. This textbook is a comprehensive guide on radio frequency (RF) microelectronics, ...
Overall, the iMON & iMEDIAN HD User's Guide provides a comprehensive guide to using these powerful media tools effectively, covering everything from basic setup to advanced customization. Whether you ...
Based on the given information from "ILI9331AN_V0.2.pdf," we can extract several key points related to the ILI9331 a-Si TFT LCD single chip driver, which supports a resolution of 240RGBx320 and 262K ...
- *PCB Design*: Refers to the process of laying out and routing a PCB. 3. **元器件**: 电子设备中的基本构成单元。 - *Component*: Basic building block in electronic devices. 4. **封装**: 元件或芯片...
- **DC to 20 MHz Oscillator/Clock Input:** The MCUs can operate over a wide range of clock frequencies, from direct current (DC) up to 20 MHz. - **200 ns Instruction Cycle:** This fast instruction ...
The given document refers to PyQt4, which was the version of PyQt that was current at the time of publication in 2012. PyQt4 includes several modules, each providing different functionalities: - **...
- **题目**: The degree of multiprogramming refers to the number of processes in memory. - **解析**: 正确。多道程序度是指内存中同时存在的进程数量。 3. **非抢占式调度算法** - **题目**: Which of the ...