
ORM (hibernate ...)
文章平均质量分 70
kaqi072821
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
org.hibernate.MappingException: No Dialect mapping
http://www.w2tt.cn/redirect.php?tid=86&goto=lastpost 在开发项目中,遇到了hibernate 的2个bug。导致出现了一些麻烦。 1、hibernate中native sql对于DB的Text数据类型不支持。 hibernate 使用 hql查询包含text类型字段的时候很好。如果使用native sql 也就是使用 creat...原创 2009-03-30 10:58:33 · 189 阅读 · 0 评论 -
(N)Hibernate inverse = true
http://www.mkyong.com/hibernate/inverse-true-example-and-explanation/ A related topic here: http://kaqi.iteye.com/blog/1345319原创 2012-07-10 12:02:24 · 109 阅读 · 0 评论 -
Hibernate: Fetch plan and fetch strategy
1. Hibernate default to a lazy fetching plan for all entities and collections. Lazy setting decides the time to fetch related objects. 2. difference between load and get Item item = (Item)session...原创 2011-12-04 17:42:43 · 131 阅读 · 0 评论 -
Active record: Transaction VS SessionScope
http://www.mail-archive.com/castle-project-users@googlegroups.com/msg07427.html原创 2011-11-28 23:00:08 · 138 阅读 · 0 评论 -
How to use session per scope in Castle ActiveRecord
http://www.castleproject.org/activerecord/documentation/v1rc1/usersguide/web.html原创 2011-11-26 22:50:25 · 113 阅读 · 0 评论 -
What happened behind "AllDeleteOrphan" mapping in NHibernate
What happened behind "AllDeleteOrphan" mapping in NHibernate? Suppose we have the following mapping for Person and FamilyMember. We expect FamilyMember to be removed from db when we remove it from th...原创 2012-01-14 14:01:16 · 160 阅读 · 0 评论 -
Hibernate, Toplink Essentials, Openjpa, Eclipselink (jpa implementation compare)
http://www.chrisshayan.com/my/index.php?option=com_content&view=article&id=70:jpa-implementations-comparison-hibernate-toplink-essentials-openjpa-eclipselink-&catid=42:technologies&Ite...原创 2009-07-21 17:28:38 · 263 阅读 · 0 评论 -
来自Java Persistence With Hibernate的示例
1. hibernate helloworld(pure hibernate) 2. hibernate helloworld JPA 3. hibernate helloworld JPA and EJB2009-02-04 12:13:51 · 100 阅读 · 0 评论 -
hibernate-mapping-3.0.dtd
<!-- Hibernate Mapping DTD. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> An instanc...原创 2009-01-11 22:42:18 · 551 阅读 · 0 评论 -
hibernate使用sql query时单元测试跑了一部分后就不动了。
我写了很多使用sql query的hibernate的单元测试,但是总是跑了一部分后就停止不前了。 由于特殊原因,我没能对session关闭,因为前人对它进行了封装,session.close()没有暴露,很恶心。 后来在数据库中mysql中,mysqladmin -uroot -pbb status,用这条命令查询连接,发现总是停在22个连接,我的测试用了20个连接,这些连接没有关闭。...2009-04-13 16:27:59 · 228 阅读 · 0 评论 -
Use Fetch in NHibernate to solve N+1
http://bartwullems.blogspot.com/2012/03/nhibernate-eager-fetching.html NHibernate eager fetching NHibernate supports the concept of eager fetching for a long time. However there are some t...原创 2014-06-17 14:32:59 · 160 阅读 · 0 评论