<key column="animal_id"> </key>
改成
<key column="id"> </key>
看看
改成
<key column="id"> </key>
看看
解决方案 »
- 问个题外话,关于。。。。。。。。
- JMS发送消息发生死机
- hibernate左连接问题
- 如何在页面上查看上传到weblogic的文件?
- 关于hibernate的映射问题!!!!!
- WebSphere 与JDOM的问题,急,各位大侠帮忙!
- JDBC的问题:使用Access如何在JBuilder9实现查询字符串功能!
- 各位大侠,有学习structs和Turbine的中文资料或书籍吗?感谢!(内无文)
- java 编译出错
- 讨论:使用哪些完全免费的东西构建最完善最稳定的基于j2ee的网站!!!!!!
- 一个简单的概念问题
- aptana studio 1.2 上面为什么oEvent(事件对象)没有智能感知,谁知道挖,告诉我下
* @hibernate.id generator-class="native" column="id"
* @return
*/
Monkey monkey = new Monkey();
Tiger tiger = new Tiger(); monkey.setKind("monkey");
monkey.setName("yy");
text2.insert(monkey);
这个上面text2.insert(Animal);
这里写法应该有问题。
insert(com.pojo.Animal);
把它改成
monkey.setKind("monkey");
monkey.setName("yy");
text2.insert(com.pojo.monkey);
这样?这样改会出错
monkey.setKind("monkey");
monkey.setName("yy");
text2.insert(com.pojomonkey);
这样会包错~根本不能运行