Hibernate
uyulnet
这个作者很懒,什么都没留下…
展开
-
hibernate连接mysql示范
hibernate配置文件 hibernate.cfg.xml true org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver jdbc:mysql://192.168.25.152/test 这里写用户名 密码 http://blog.csdn.net/rcf转载 2012-09-25 13:04:05 · 427 阅读 · 0 评论 -
org.hibernate.id.IdentifierGenerationException:我的第一个hibernate异常
今天hibernate已经开课了,刚写了一个小练习,就出现了一个异常,现在分享如下: 异常信息:org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): 异常原因: 元素配置不正确, 元素缺少其转载 2012-09-25 13:06:37 · 417 阅读 · 0 评论