会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Alamps 沁园春
养活一团春意思;撑起两根穷骨头。
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
ssh
1
2
下一页
ssh
36hibernate_fetch_7_set_batch_size
摘要:hibernate抓取策略,batch-szie在集合上的应用public void testFetch1() { Session session = null; try { session = HibernateUtils.getSession(); session.beginTransactio
阅读全文
posted @
2012-08-13 08:38
Alamps
阅读(156)
评论(0)
推荐(0)
35hibernate_fetch_6_batch_size
摘要:hibernate抓取策略,,batch-szie在<class>上的应用batch-size属性,可以批量加载实体类,参见:Classes.hbm.xml<class name="Classes" table="t_classes" batch-size="3"> public void test
阅读全文
posted @
2012-08-13 08:38
Alamps
阅读(98)
评论(0)
推荐(0)
34hibernate_fetch_5_set_subselect
摘要:hibernate抓取策略(集合代理的批量抓取)设置fetch="subselect",如:<set name="students" inverse="true" cascade="all" fetch="subselect">fetch="subselect",另外发送一条select语句抓取在前
阅读全文
posted @
2012-08-13 08:37
Alamps
阅读(109)
评论(0)
推荐(0)
32hibernate_fetch_3_set_select
该文被密码保护。
posted @
2012-08-13 08:36
Alamps
阅读(3)
评论(0)
推荐(0)
33hibernate_fetch_4_set_join
摘要:hibernate抓取策略(集合代理的批量抓取)设置fetch="join",如:<set name="students" inverse="true" cascade="all" fetch="join">fetch="join",hibernate会通过select语句使用外连接来加载其关联实体
阅读全文
posted @
2012-08-13 08:36
Alamps
阅读(102)
评论(0)
推荐(0)
31hibernate_fetch_2_join
摘要:hibernate抓取策略(单端代理的批量抓取)设置fetch="join",如:<many-to-one name="classes" column="classesid" fetch="join"/>fetch="join",hibernate会通过select语句使用外连接来加载其关联实体或集
阅读全文
posted @
2012-08-13 08:35
Alamps
阅读(112)
评论(0)
推荐(0)
30hibernate_fetch_1_select
摘要:hibernate抓取策略(单端代理的批量抓取)保持默认(也就是说什么也不配),同fetch="select",如:<many-to-one name="classes" column="classesid" fetch="select"/>fetch="select",另外发送一条select语句
阅读全文
posted @
2012-08-13 08:34
Alamps
阅读(92)
评论(0)
推荐(0)
29hibernate_query_cache
摘要:hibernate查询缓存查询缓存是针对普通属性结果集的缓存对实体对象的结果集只缓存id查询缓存的生命周期(不确定),当前关联的表发生修改,那么查询缓存生命周期结束查询缓存的配置和使用: * 在hibernate.cfg.xml文件中启用查询缓存,如: <property name="hiberna
阅读全文
posted @
2012-08-11 18:03
Alamps
阅读(185)
评论(0)
推荐(0)
28hibernate_cache_level_2
摘要:hibernate二级缓存二级缓存也称进程级的缓存或SessionFactory级的缓存,二级缓存可以被所有的session共享二级缓存的生命周期和SessionFactory的生命周期一致,SessionFactory可以管理二级缓存二级缓存的配置和使用: * 将echcache.xml文件拷贝到
阅读全文
posted @
2012-08-10 20:56
Alamps
阅读(185)
评论(0)
推荐(0)
27hibernate_cache_level_1
摘要:hibernate一级缓存 一级缓存很短和session的生命周期一致,一级缓存也叫session级的缓存或事务级缓存那些方法支持一级缓存: * get() * load() * iterate(查询实体对象) 如何管理一级缓存: * session.clear(),session.evict()
阅读全文
posted @
2012-08-10 20:53
Alamps
阅读(128)
评论(0)
推荐(0)
26hibernate_hql
摘要:hibernate查询语言hql在hql中关键字不区分大小写,但是属性和类名区分大小写1、简单属性查询【重要】 * 单一属性查询,返回结果集属性列表,元素类型和实体类中相应的属性类型一致 * 多个属性查询,返回的集合元素是对象数组,数组元素的类型和对应的属性在实体类中的类型一致 数组的长度取决与se
阅读全文
posted @
2012-08-10 14:42
Alamps
阅读(144)
评论(0)
推荐(0)
25hibernate_training_tree
摘要:package com.bjsxt.hibernate;import org.hibernate.cfg.Configuration;import org.hibernate.tool.hbm2ddl.SchemaExport;public class ExportToDB { /** * @par
阅读全文
posted @
2012-08-09 10:58
Alamps
阅读(123)
评论(0)
推荐(0)
23hibernate_pessimistic_locking
摘要:悲观锁悲观锁的实现,通常依赖于数据库机制,在整个过程中将数据锁定,其它任何用户都不能读取或修改ExportDB:create table t_inventory (itemNo integer not null auto_increment, itemName varchar(255), quant
阅读全文
posted @
2012-08-08 11:21
Alamps
阅读(97)
评论(0)
推荐(0)
24hibernate_optimistic_locking
该文被密码保护。
posted @
2012-08-08 11:16
Alamps
阅读(1)
评论(0)
推荐(0)
22hibernate_collection_mapping
该文被密码保护。
posted @
2012-08-07 16:23
Alamps
阅读(1)
评论(0)
推荐(0)
21hibernate_composite_mapping
该文被密码保护。
posted @
2012-08-07 15:24
Alamps
阅读(2)
评论(0)
推荐(0)
20hibernate_component_mapping
该文被密码保护。
posted @
2012-08-07 15:20
Alamps
阅读(1)
评论(0)
推荐(0)
19hibernate_extends_3
该文被密码保护。
posted @
2012-08-06 18:19
Alamps
阅读(1)
评论(0)
推荐(0)
18hibernate_extends_2
该文被密码保护。
posted @
2012-08-06 18:18
Alamps
阅读(1)
评论(0)
推荐(0)
17hibernate_extends_1
该文被密码保护。
posted @
2012-08-06 12:00
Alamps
阅读(1)
评论(0)
推荐(0)
1
2
下一页