一张信息表 一张地址类(AreaCode) 信息类(TroubleshootCallLog)
private Long id;
private string comt;
private int areaID;
private AreaCode areaCode;
地址表
private int areaID;
private String areaName;
信息表
<property name="areaID" type="java.lang.Integer">
<column name="AREA_OCA" precision="22" scale="0" />
</property>
配置 <many-to-one name="areaCode" column="areaID" class="fs.model.AreaCode" cascade="all"/> 查询语句 from TroubleshootCallLog tc where 1=1
报错
ORA-00904: "TROUBLESHO0_"."AREAID": ?????我是不是哪里配置错误了
private Long id;
private string comt;
private int areaID;
private AreaCode areaCode;
地址表
private int areaID;
private String areaName;
信息表
<property name="areaID" type="java.lang.Integer">
<column name="AREA_OCA" precision="22" scale="0" />
</property>
配置 <many-to-one name="areaCode" column="areaID" class="fs.model.AreaCode" cascade="all"/> 查询语句 from TroubleshootCallLog tc where 1=1
报错
ORA-00904: "TROUBLESHO0_"."AREAID": ?????我是不是哪里配置错误了
解决方案 »
- 不支持此服务器版本。目标服务器必须是 SQL Server 2000 或更高版本。求解
- web 版本管理
- 小弟已经将ASCII码解析成XML,然后再用XSLT解析成HTM表格,但是
- 求救!!怎么样将我的主页地址http://192.168.0.50:8080/index.jsp 用一个简单的几个字符来代替
- myeclipse 导入web项目报错
- jsp或html中如何播放exe格式的flash
- 在weblogic 8.1上使用JSTL的import tag发生error
- 权限控制(ACL)问题
- 多个Spring MVC拦截器怎么从afterCompletion跳出来
- 如何上传文件到服务器端 前台html,js 后台python语言
- 你发现这个的好处了吗~~
- 鼠标移动到相应条目时显示更多内容
<column name="AREA_OCA" precision="22" scale="0" />
</property> 不能映射进来。。
但是查询的时候 还是只查询TroubleshootCallLog(多的)表。。地址表不查询。。不知道为什么。。
是不死 AREA_OCA字段有问题。。是不是要和AreaCode表里的字段一致。
<id name="areaID" type="java.lang.Long">
<column name="id" />
<generator class="sequence" />
</id>
<property name="areaName" type="java.lang.String">
<column name="AREA" length="1000" />
</property>