hibernate
文章平均质量分 77
小落0117
学习这种事,当然要每天做啦,因为学习使我快乐,我人生的目标就是快乐~
展开
-
hibernate问题几则
写第一个hibernate程序的时候遇到了一下几个问题,说一下解决方法供大家参考1.找不到主类main解决方法:build path就可以了,原来build好了的就重新build一下,如果有红叉叉的就move掉2.entity class notfound解决方法:原创 2017-05-21 18:51:40 · 158 阅读 · 0 评论 -
hibernate写xml文件没有提示怎么办
你的文件要写上如下语句 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">然后myeclipse里面找windows/preferences/myeclipse/files and editors/xml/xml files/xml catalog,右侧上方有一个add,点一下,key type选择URI,一定原创 2017-05-21 11:31:33 · 411 阅读 · 0 评论 -
hibernate的hql语言实现增删改查
oracle下建表testcreate table(stuname char(32),stuno varchar(50),sex char(1),cource varchar(50),grade number(18));新建Java工程在src下建包stu在stu下建class Studentpackage stu;public class Student {原创 2017-05-21 20:28:40 · 1613 阅读 · 0 评论