6月 13号
Caused by: java.sql.SQLException: ORA-00904: "THIS_"."WAREHOUSE": invalid identifier一开始我以为是 因为是 warehouse的类型被我设置错误了 。结果到数据库里发现是 因为我再数据库里根本就没有这个字段造成的
if (warehouse == null) {
wh = null;
} else {
wh = masterWHDAO.findById(warehouse);
}
dao.findbyid(warehouse):warehouse can't be null
c.add(Expression.isNull("warehouse"));注意isnull跟isempty的区别。后者是指集合是否为空
openSessionInView常出现<div style="border-style: solid; border-color: rgb(221, 221, 221); border-width: 1pt 1pt 1pt 3pt; padding: 1pt; margin-right: 0cm;"><!---->1. <!---->InvalidDataAccessApiUsageException: Write operations <o:p></o:p>
页:
[1]