Hibernate 映射异常: An association from the table TBL_TRAIN_COURSE_MONTH_PLAN refers to an unmapped class
关联时,要注意:
<many-to-one name="user_id" column="user_id" class="xxxx.TbUser"></many-to-one>
class最好写全包路径,不然会出现以上错误的
Caused by: org.hibernate.MappingException: An association from the table TBL_TRAIN_COURSE_MONTH_PLAN refers to an unmapped class: com.sencloud.dh.oa.action.basedata.TrainCourse
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1067)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:989)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:932)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:673)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 41 more
相关推荐
this is used for define the table for matlab gui
Tbl editor codes.With c# code
征途TBL文件查看、修改工具集,架設征途私服不可缺少工具 TBL互转XML工具.exe
void tbl_qual_income_record_init_member(tbl_qual_income_record &tmp); int tbl_qual_income_record_select_by_pk(tbl_qual_income_record &tmp); int tbl_qual_income_record_prepared_select_by_pk(tbl_qual...
tbl_5gc_fwq_if_info.sql
CREATE TABLE tbl_region ( REG_ID NUMBER NOT COMMENT 'ID', REG_CODE VARCHAR2 COMMENT '地区编号', REG_NAME VARCHAR2 COMMENT '地区名称', REG_LEVEL VARCHAR2 COMMENT '地区级别', PARENT_CODE VARCHAR2 ...
tbl_dept.sql
tbl_user.sql
MYSQL ALTER TABLE命令用于修改表结构,例如添加/修改/删除字段、索引、主键等等,本文章通过实例向大家介绍MYSQL ALTER TABLE语句的使用方法, MySQL ALTER语法如下: ALTER [IGNORE] TABLE tbl_name alter_spec...
cad 插件,把文字导出到excel文件,可做统计使用。
alter table tbl_name add col_name type 例如, 给pet的表增加一列 weight, mysql>alter table pet add weight int; 2. 删除列 alter table tbl_name drop col_name 例如, 删除pet表中的weight这一列 mysql>...
by_account数据库TBL_SERVER_LIST表,右键->编辑前200行 修改alias(区) url(ip) opentime(开服时间) 服务端外网IP修改: \vens\zltz\clt_bin\h5\main.min.js 192.168.1.131改成你自己的ip 2处 \vens\zltz\svr_...
ko no animation box for old ko servers v 1299
RFID开发demo
在 Yii 自动生成的代码里,我们总能在 admin 的界面看到 CGridView 的身影。...drop table if exists `tbl_user`; CREATE TABLE tbl_user ( `user_id` INTEGER NOT NULL AUTO_INCREMENT comment '主键', `usernam
最终效果图: 简单来看一下其中的主要部分: HTML: .td_back_color { background-color: red; ...<table id=tbl_count> <caption>2013春节聚会收支统计 姓名 吃饭 <th>KTV 烧烤</th>
mysql存储过程,对表格内容汉字进行汉语拼音转换,可进行全拼或简拼的模糊查询,例如:中国人---zhongguoren 或 zgr。
可以直接打开tbl文件,
任务倾斜盛宴争吵时间结构数据结构tibble(tbl) 摆动(tbl_ts) 摆动(tbl_ts) tibbletime(tbl_time) 可视化交互式图(情节性地) :check_mark_button: :cross_mark: :cross_mark: :cross_mark: 静态图(ggplot...
update tbl_org_user set role_no = '000020' where diaplayname = '{0}' and role_no = '000'; 在values.txt写个如下内容 王军 董建美 董建美 李勇 刘振永 丁海涛 张琪琨 王婷婷 将会在result.txt中生成 update ...