摘要: 這是個什么問題呢?
首先你要在這樣的環(huán)境下:
iBatis-2.3.4.726
oracle jdbc driver 10.2.0.3.0
你的數(shù)據(jù)庫中字段定義為TIMESTAMP
你的sqlMap中的resultClass為hashmap
這是如果你這樣調(diào)用
Map result = xxxDao.queryForObject(......);
Date someTime = (Date)result.get("someTime");
你會的到如下ClassCaseException: oracle.sql.TIMESTAMP
閱讀全文