![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jpa
qqss84
这个作者很懒,什么都没留下…
展开
-
ejb 学习
为了留下自己的脚印,方便以后回忆,故写此笔记。今日遇到了这个问题,解决ing。org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.ejb.entities.U原创 2011-11-28 02:19:24 · 568 阅读 · 2 评论 -
ejb 学习
在persist 另外一个OneToMany 关系的时候,Item 这个entitiy 不能成功的写入数据库出现错误 Caused by: javax.transaction.RollbackException at org.objectweb.jotm.TransactionImpl.commit(TransactionImpl.java:325) at org.obje原创 2011-12-05 02:32:03 · 726 阅读 · 1 评论 -
ejb 学习
出现 JDBCExceptionReporter.logExceptions : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 问题 SchemaUpdate.execute原创 2011-12-10 05:54:15 · 1355 阅读 · 1 评论 -
ejb 学习
看到一个blog 介绍了一些关于ejb 项目的开发经验留做纪念:http://www.quanlei.com/tag/jpa/原创 2011-12-12 07:16:40 · 453 阅读 · 0 评论 -
ejb 学习:sql 语句的输入
当在j2ee 里想输入sql语句,可参考一下简例:query = em.createQuery("SELECT i FROM Item AS i WHERE i.genre='"+genred+"'");这里 Item 是个类,genre 其中一个属性, genred 是String‘ ’是为了说明genred 是i.genre 的值, 其中第二个 ' 要用个" "原创 2011-12-15 22:42:19 · 692 阅读 · 0 评论