Hibernate 2nd-level cache: 基础概念

 Introduction

The goal for this document is to mainly describe the Hibernate 2nd-level caching strategy, learning how to use it and how can we got the performance benefit from the caching strategy.

 

 Caching strategy and scopes

  

 1. Three kinds of scope caching strategies

       Transaction scope cache

       Transaction scope cache: Attached to the current unit of work, which always associates with a database transaction/conversation. It’s valid and used only as long as the unit of work runs. Every unit of work has its own cache. Data in this cache isn’t accessed concurrently. (When hibernate transaction committed, this scope caching cleaned)

      

       Process scope cache

       Process scope cache: Shared between many (possibly concurrent) units of work or transactions. This means that data in the process scope cache is accessed by concurrently running threads, obviously with implications on transaction isolation, this only works in one single JVM

       

         Cluster scope cache

       Cluster scope cache: Shared between multiple processes on the same machine or between multiple machines in a cluster. Here, network communication is an important point worth consideration. This works for multiple JVM, Caching information must be replicated to all nodes in the

cluster.

 

  2. The Hibernate cache architecture 

 

      First level cache

The first-level cache is the persistence context cache. A Hibernate Session lifespan corresponds to either a single request - usually implemented with one database
transaction/conversation. This is a mandatory first-level cache that also guarantees the scope of object and database identity (the exception being the StatelessSession, which doesn’t have a persistence context).

First-level cache is associated with the Session Object.

 

     Second level cache

The second-level cache in Hibernate is pluggable and may be scoped to the process or cluster. This is a cache of state (returned by value), not of actual persistent instances. Use of the second-level cache is optional and can be configured on a per-class and per-collection basis—each such cache utilizes its own physical cache region.


Second-level cache is associated with the SessionFactory object.

To reduce database traffic, second-level cache keeps loaded objects at the SessionFactory level between transactions. These objects are available to the whole application.

 

 

 

 

 3. Hibernate Second Level Cache 

 

       3.1 Persistence instances in Hibernate 2nd-level cache

Persistent instances are stored in the second-level cache in a disassembled form. Think of disassembly as a process a bit like serialization (the algorithm is much, much faster than Java serialization, however). - This is a cache of state (returned by value), not of actual persistent instances.

Actually Hibernate stores those persistence objects in their “dehydrated” form, that is something like the property values as below

{

30 => [cn,China,30],

214 => [US,United State,214],

158 => [DE,German,158],

31 => [by,Belarus,31]

95 => [in,India,95]

...

}

 

      3.2 The good candidates classes for caching

 

Good candidate classes for caching are classes that represent

Data that changes rarely

Content-management data

Data that is local to the application and not shared with other legacy application

 

Bad candidates for second-level caching are

Data that is updated often

Financial data

Data that is shared with a legacy application

 

Just as an example in PRT, such as the CONF_CTRY records are good candidates but the PRICE_CN records are bad candidates cause it is updated often.

 

To repeat, the cache is usually useful only for read-mostly classes. If you have data that is updated much more often than it’s read, don’t enable the second-level cache, even if all other conditions for caching are true! The price of maintaining the cache during updates can possibly outweigh the performance benefit of faster reads.

 

PRT is a legacy application because it can process by JDBC, and Hibernate can never aware of the changes made by JDBC. See Section 2.3.9 to check the way how to resolve this issue.

 

      3.3 Build-in Concurrency strategies - transaction isolation

 

The four built-in concurrency strategies represent decreasing levels of strictness

in terms of transaction isolation:

 

Transactional—Available in a managed environment only, it guarantees full

transactional isolation up to repeatable read, if required. Use this strategy for read-mostly data where it’s critical to prevent stale data in concurrent transactions, in the rare case of an update.

 

Read-write—This strategy maintains read committed isolation, using a timestamping

mechanism and is available only in non-clustered environments. Again, use this strategy for read-mostly data where it’s critical to prevent stale data in concurrent transactions, in the rare case of an update.

 

Nonstrict-read-write—Makes no guarantee of consistency between the cache and the database. If there is a possibility of concurrent access to the same entity, you should configure a sufficiently short expiry timeout. Otherwise, you may read stale data from the cache. Use this strategy if data hardly ever changes (many hours, days, or even a week) and a small likelihood of stale data isn’t of critical concern.

 

Read-only—A concurrency strategy suitable for data which never changes. Use it for reference data only.

 

      3.3 Cluster Cache VS Process Cache

 

Cluster cache can replicate the changed data across the clusters, one cluster data is changed, all the other cluster will be synchornized immediately to keep the caching data to avoid the dirty read – example, if both Cluster1 and Cluster2 cached the element E, and Cluster 1 updated the E, if not using Cluster caching, Cluster2 never knows the changes made by Cluster 1 ( only except for when the element E time out ), then Cluster2 continue to get the unchanged data from its own 2nd-level cache, then the dirty data is fetched – So we have to use the Cluster Caching between clusters except for the scenario that only needs caching read-only data(the data never updated). And at the general, Cluster cache only support READ-ONLY and REPEATABLE-READ isolation level. JBoss caching highly suggests to use the Optimistic Node locking Strategies to enhancement the performance when replication among clusters

 

Process cache only works for a single JVM, it supports all the Caching concurrency isolation level except for Transactional.

 

Any application that is designed to scale must support clustered operation. A process scope cache doesn’t maintain consistency between the different caches on different machines in the cluster. In this case, a cluster scope (distributed) second-level cache should be used instead of the process scope cache. Our WWPRT System contains the ATS and 2 WAS applications, so we have to choose the cluster scope second – level cache

 

       3.4 Caching Provider

For considering the concurrency strategies you’ll use for your cache candidate classes to pick a cache provider. The provider is a plug-in, the physical implementation of a cache system.

Hibernate forces you to choose a
single cache provider for the whole application.

Providers for the following open source products are built into Hibernate:


EHCache is a cache provider intended for a simple process scope cache in a single JVM. It can cache in memory or on disk, and it supports the optional Hibernate query result cache. (The latest version of EHCache now supports clustered caching, but we haven’t tested this yet.)

 

OpenSymphony OSCache is a service that supports caching to memory and

disk in a single JVM, with a rich set of expiration policies and query cache support.

 

SwarmCache is a cluster cache based on JGroups. It uses clustered invalidation

but doesn’t support the Hibernate query cache.

 

JBoss Cache is a fully transactional replicated clustered cache also based on the JGroups multicast library. It supports replication or invalidation, synchronous or asynchronous communication, and optimistic and pessimistic locking. The Hibernate query cache is supported, assuming that clocks are synchronized in the cluster.

 
JBoss caching provider supports the Read-Only and Transactional Concurrency Strategy across the clusters.

 

 If a record is cached as read-commit, it plays as the same action than database, if it updated by the a transaction, the other transactions can not access the record.

 

      3.5 JBoss Caching Strategy

  

We know that, JBoss caching supports to replicate the changed data among its managed clusters to avoid the dirty read between the clusters. So How does it works ?

JBossCache has five different cache modes, i.e., LOCAL , REPL_SYNC , REPL_ASYNC , INVALIDATION_SYNC and INVALIDATION_ASYNC.
If you want to run JBoss Cache as a single instance, then you should set the cache mode to
LOCAL so that it won't attempt to replicate anything.
If you want to have synchronous replication among different JBoss Cache instances, you can
set it to REPL_SYNC . For asynchronous replication, use AYSNC_REPL .
If you do not wish to replicate cached data but simply inform other caches in a cluster that data
under specific addresses are now stale and should be evicted from memory, use
INVALIDATION_SYNC or INVALIDTAION_ASYNC . Synchronous and asynchronous
behavior applies to invalidation as well as replication.

INVALIDATION_SYNC always to be the best choice for us, it always plays more faster during replication because it doesn’t need to synchronize the data in each cluster's caching memory, it directly tell the other clusters to evict the stale data and re-load from DB.

 

When does the JBoss cache to replicate the stale data between clusters?

If the updates are under transaction, then the replication happen only when the transaction is about to commit (actually during the prepare stage internally). However, if the operations are not under transaction context, then each update will trigger replication. Note that this has performance implication if network transport is heavy (it usually is).

 

So a good practice to use Second-Level cache is that to make your system under well transactional management always.

 

How does it replication mechanism works?

JBoss Cache leverages JGroups as a replication layer. A user can configure the cluster of JBoss Cache instances by sharing the same cluster name. In WWPRT environment, we have ATS and WAS clusters, we can set them as one JGoups with a unique cluster name.

 

Note that once all instances join the same replication group, every replication change is propagated to all participating members. There is no mechanism for sub-partitioning where some replication can be done within only a subset of members. This is on our to do list.

Check the more frequentely asked questions from

http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/cache/Cache_Frequently_Asked_Questions/tree_cache.html

 

      3.6 Example of configuring the second-level cache instance  

Read Only 

<class name="auction.model.Category" table="CATEGORY">

       <cache usage="read-only"/>

       <id ...

</class>

 

 

Read Commit

<class name="auction.model.Category" table="CATEGORY">

       <cache usage="read-write"/>

       <id ...

</class>

 

 

Enable Collection cache instances

 

<class name="Item" table="ITEM">

       <cache usage="read-write"/>

       <id ...

       <set name="bids">

       <cache usage="read-write"/>

       <key ...

       </set>

</class>

 

<class name="Bid" table="BID" mutable="false">

       <cache usage="read-write"/>

       <id ...

</class>

 

 

       3.7 Setting up the cache providers

Hibernate only supports one cache provider

 

EHCache Example

EHcache Provider is a Process cache, it's single JVM based 

Step1: Set the configuration property that selects a cache provider as below,

hibernate.cache.provider_class = org.hibernate.cache.EhCacheProvider


 

Step2: Configure the ehcache.xml under classpath for the Category class,

<cache name="auction.model.Bid"

maxElementsInMemory="50000"

eternal="false"

timeToIdleSeconds="1800"

timeToLiveSeconds="100000"

overflowToDisk="false"

memoryStoreEvictionPolicy="LRU"

/>


maxelementsInMemory: If the records cached in memory are extends the number, the least
accessed records will be removed.

external: If true, that means the records will never be removed(never disabling eviction by
timeout).

timeToIdleSeconds: the expiry time in seconds since an element was last accessed in the cache.

timeToLiveSeconds: the expiry time in seconds since the element was first added to the cache.

OverflowToDisk: If the cached records extends the maxelementInMemory, it will be
serialized into the file. Set as false

memoryStoreEvictionPolicy: the policy on how to evict the cache data
LRU
– least recently used
LFU
least frequently used

FIFO – first in first out, the oldest element by creation time

 

JBoss Cache Example

see http://comedsh.iteye.com/admin/blogs/729150 

 

       3.8 Management the changed records by other applications 

Many Java applications share access to their database with other applications. There is no way for a cache system to know when the legacy application(the system is not context management by Hibernate) updated the shared data. For example, we use the SQL directly changed the database, then our cache system will never knows immediately. So we have to implement application-level functionality to trigger an invalidation of the process (or cluster) scope cache when changes are made to the database.

Fortunately, we already have the application-level functionality implement in our system, com.ibm.finance.tools.wwprt.util.ExpirationListener, if we touch the file wwprt-was.properties all the cached data will be reloaded immediately.
( current it not implement for 2nd-leve cache strategy, but we can added here).
But this is only usable for plain SQL executed manually, then we can touch (shell command) the file to re-loaded those cached data.

It still can
not resolve the JDBC access by programming, The only way to do so is to evict the related cached data from SessionFactory( 2nd level cached data stored in ) after the JDBC executed every time, then 2nd-level cache will re-load those invalided records automatically, this is the only way for us because Hibernate never knows the changes under JDBC Spring Template.

 

       3.8 Bench mark testing

Times

Without 2nd caching

With 2nd caching

Perf-enhanced

1

25,250 ms

24,265ms

~

2

19,203 ms

678ms

96.4 %.

3

19,344 ms

719ms

96.2 %.

4

19,203 ms

818ms

95.7 %.

5

18,891 ms

660ms

96.5 %.

 

 

      3.9 Control the 2nd level cache

 

We have a those ways below provided by Hibernate/Cache provider to control the 2nd-level cache.

 

Control on SessionFactory level

remove an element/collection from the second-level cache


SessionFactory.evict( Category.class, new Long(123) );

 

 

remove all elements/collections of a certain class

SessionFactory.evict("auction.model.Category");

SessionFactory.evictCollection("auction.model.Category.items");

 

Control on Session level

Hibernate offers CacheMode options that can be activated for a particular Session. Imagine that you want to batch insert some records into database in one Session, and we don't want to add those 2nd -level cachable objects caching into 2nd-level cache, we can do as below,

 

Session session = sessionFactory.openSession();

Transaction tx = session.beginTransaction();

session.setCacheMode(CacheMode.IGNORE);

for ( int i=0; i<100000; i++ ) {

Item item = new Item(...);

session.save(item);

if ( i % 100 == 0 ) {

session.flush();

session.clear();

}

}

tx.commit();

session.close();

 

CacheMode.IGNORE: Hibernate never interacts with the second-level cache except to
invalidate cached items when updates occur.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
第一部分 从Hibernate和EJB 3.0开始  第1章 理解对象/关系持久化    1.1 什么是持久化     1.1.1 关系数据库     1.1.2 理解SQL     1.1.3 在Java中使用SQL     1.1.4 面向对象应用程序中的持久化    1.2 范式不匹配     1.2.1 粒度问题     1.2.2 子类型问题     1.2.3 同一性问题     1.2.4 与关联相关的问题     1.2.5 数据导航的问题     1.2.6 不匹配的代价    1.3 持久层和其他层 显示全部信息第一部分 从Hibernate和EJB 3.0开始  第1章 理解对象/关系持久化    1.1 什么是持久化     1.1.1 关系数据库     1.1.2 理解SQL     1.1.3 在Java中使用SQL     1.1.4 面向对象应用程序中的持久化    1.2 范式不匹配     1.2.1 粒度问题     1.2.2 子类型问题     1.2.3 同一性问题     1.2.4 与关联相关的问题     1.2.5 数据导航的问题     1.2.6 不匹配的代价    1.3 持久层和其他层     1.3.1 分层架构     1.3.2 用SQL/JDBC手工编写持久层     1.3.3 使用序列化     1.3.4 面向对象的数据库系统     1.3.5 其他选项    1.4 ORM     1.4.1 什么是ORM     1.4.2 一般的ORM问题     1.4.3 为什么选择ORM     1.4.4 Hibernate、EJB 3和JPA简介    1.5 小结   第2章 启动项目    2.1 启动Hibernate项目     2.1.1 选择开发过程     2.1.2 建立项目     2.1.3 Hibernate配置和启动     2.1.4 运行和测试应用程序    2.2 启动Java Persistence项目     2.2.1 使用Hibernate Annotations     2.2.2 使用Hibernate EntityManager     2.2.3 引入EJB组件     2.2.4 切换到Hibernate接口    2.3 反向工程遗留数据库     2.3.1 创建数据库配置     2.3.2 定制反向工程     2.3.3 生成Java源代码    2.4 与Java EE服务整合     2.4.1 与JTA整合     2.4.2 JNDI绑定的SessionFactory     2.4.3 JMX服务部署    2.5 小结   第3章 领域模型和元数据    3.1 CaveatEmptor应用程序     3.1.1 分析业务领域     3.1.2 CaveatEmptor领域模型    3.2 实现领域模型     3.2.1 处理关注点渗漏     3.2.2 透明和自动持久化     3.2.3 编写POJO和持久化实体类     3.2.4 实现POJO关联     3.2.5 把逻辑添加到访问方法    3.3 ORM元数据     3.3.1 XML中的元数据     3.3.2 基于注解的元数据     3.3.3 使用XDoclet     3.3.4 处理全局的元数据     3.3.5 运行时操作元数据    3.4 其他实体表示法     3.4.1 创建动态的应用程序     3.4.2 表示XML中的数据    3.5 小结  第二部分 映射概念和策略  第4章 映射持久化类    4.1 理解实体和值类型     4.1.1 细粒度的领域模型     4.1.2 定义概念     4.1.3 识别实体和值类型    4.2 映射带有同一性的实体     4.2.1 理解Java同一性和等同性     4.2.2 处理数据库同一性     4.2.3 数据库主键    4.3 类映射选项     4.3.1 动态的SQL生成     4.3.2 使实体不可变     4.3.3 给查询命名实体     4.3.4 声明包名称     4.3.5 用引号把SQL标识符括起来     4.3.6 实现命名约定    4.4 细粒度的模型和映射     4.4.1 映射基础属性     4.4.2 映射组件    4.5 小结   第5章 继承和定制类型    5.1 映射类继承     5.1.1 每个带有隐式多态的具体类一张表     5.1.2 每个带有联合的具体类一张表     5.1.3 每个类层次结构一张表     5.1.4 每个子类一张表     5.1.5 混合继承策略     5.1.6 选择策略    5.2 Hibernate类型系统     5.2.1 概述实体和值类型     5.2.2 内建的映射类型     5.2.3 使用映射类型    5.3 创建定制的映射类型     5.3.1 考虑定制的映射类型     5.3.2 扩展点     5.3.3 定制映射类型的案例     5.3.4 创建UserType     5.3.5 创建CompositeUserType     5.3.6 参数化定制类型     5.3.7 映射枚举    5.4 小结   第6章 映射集合和实体关联    6.1 值类型的set、bag、list和map     6.1.1 选择集合接口     6.1.2 映射set     6.1.3 映射标识符bag     6.1.4 映射list     6.1.5 映射map     6.1.6 排序集合和有序集合  6.2 组件的集合     6.2.1 编写组件类     6.2.2 映射集合     6.2.3 启用双向导航     6.2.4 避免非空列    6.3 用注解映射集合     6.3.1 基本的集合映射     6.3.2 排序集合和有序集合     6.3.3 映射嵌入式对象的集合    6.4 映射父/子关系     6.4.1 多样性     6.4.2 最简单的可能关联     6.4.3 使关联双向     6.4.4 级联对象状态    6.5 小结   第7章 高级实体关联映射    7.1 单值的实体关联     7.1.1 共享的主键关联     7.1.2 一对一的外键关联     7.1.3 用联结表映射    7.2 多值的实体关联     7.2.1 一对多关联     7.2.2 多对多关联     7.2.3 把列添加到联结表     7.2.4 映射map    7.3 多态关联     7.3.1 多态的多对一关联     7.3.2 多态集合     7.3.3 对联合的多态关联     7.3.4 每个具体类一张多态表    7.4 小结   第8章 遗留数据库和定制SQL    8.1 整合遗留数据库     8.1.1 处理主键     8.1.2 带有公式的任意联结条件     8.1.3 联结任意的表     8.1.4 使用触发器    8.2 定制SQL     8.2.1 编写定制CRUD语句     8.2.2 整合存储过程和函数    8.3 改进Schema DDL     8.3.1 定制SQL名称和数据类型     8.3.2 确保数据一致性     8.3.3 添加领域约束和列约束     8.3.4 表级约束     8.3.5 数据库约束     8.3.6 创建索引     8.3.7 添加辅助的DDL    8.4 小结  第三部分 会话对象处理  第9章 使用对象    9.1 持久化生命周期     9.1.1 对象状态     9.1.2 持久化上下文    9.2 对象同一性和等同性     9.2.1 引入对话     9.2.2 对象同一性的范围     9.2.3 脱管对象的同一性     9.2.4 扩展持久化上下文    9.3 Hibernate接口     9.3.1 保存和加载对象     9.3.2 使用脱管对象     9.3.3 管理持久化上下文    9.4 JPA     9.4.1 保存和加载对象     9.4.2 使用脱管的实体实例    9.5 在EJB组件中使用Java Persistence     9.5.1 注入EntityManager     9.5.2 查找EntityManager     9.5.3 访问EntityManagerFactory    9.6 小结   第10章 事务和并发    10.1 事务本质     10.1.1 数据库和系统事务     10.1.2 Hibernate应用程序中的事务     10.1.3 使用Java Persistence的事务    10.2 控制并发访问     10.2.1 理解数据库级并发     10.2.2 乐观并发控制     10.2.3 获得额外的隔离性保证    10.3 非事务数据访问     10.3.1 揭开自动提交的神秘面纱     10.3.2 使用Hibernate非事务地工作     10.3.3 使用JTA的可选事务    10.4 小结   第11章 实现对话    11.1 传播Hibernate Session     11.1.1 Session传播的用例     11.1.2 通过线程局部传播     11.1.3 利用JTA传播     11.1.4 利用EJB传播    11.2 利用Hibernate的对话     11.2.1 提供对话保证     11.2.2 利用脱管对象的对话     11.2.3 给对话扩展Session    11.3 使用JPA的对话     11.3.1 Java SE中的持久化上下文传播     11.3.2 在对话中合并脱管对象     11.3.3 在Java SE中扩展持久化上下文    11.4 使用EJB 3.0的对话     11.4.1 使用EJB的上下文传播     11.4.2 利用EJB扩展持久化上下文    11.5 小结   第12章 有效修改对象    12.1 传播性持久化     12.1.1 按可到达性持久化     12.1.2 把级联应用到关联     12.1.3 使用传播性状态     12.1.4 利用JPA的传播性关联    12.2 大批量和批量操作     12.2.1 使用HQL和JPA QL的大批量语句     12.2.2 利用批量处理     12.2.3 使用无状态的会话    12.3 数据过滤和拦截     12.3.1 动态数据过滤     12.3.2 拦截Hibernate事件     12.3.3 内核事件系统     12.3.4 实体监听器和回调    12.4 小结   第13章 优化抓取和高速缓存    13.1 定义全局抓取计划     13.1.1 对象获取选项     13.1.2 延迟的默认抓取计划     13.1.3 理解代理     13.1.4 禁用代理生成     13.1.5 关联和集合的即时加载     13.1.6 通过拦截延迟加载    13.2 选择抓取策略     13.2.1 批量预抓取数据     13.2.2 通过子查询预抓取集合     13.2.3 通过联结即时抓取     13.2.4 给二级表优化抓取     13.2.5 优化指导方针    13.3 高速缓存基本原理     13.3.1 高速缓存策略和范围     13.3.2 Hibernate高速缓存架构    13.4 高速缓存实践     13.4.1 选择并发控制策略     13.4.2 理解高速缓存区域     13.4.3 设置本地的高速缓存提供程序     13.4.4 设置重复的高速缓存     13.4.5 控制二级高速缓存    13.5 小结   第14章 利用HQL和JPA QL查询    14.1 创建和运行查询     14.1.1 准备查询     14.1.2 执行查询     14.1.3 使用具名查询    14.2 基本的HQL和JPA QL查询     14.2.1 选择     14.2.2 限制     14.2.3 投影    14.3 联结、报表查询和子查询     14.3.1 联结关系和关联     14.3.2 报表查询     14.3.3 利用子查询    14.4 小结   第15章 高级查询选项    15.1 利用条件和示例查询     15.1.1 基本的条件查询     15.1.2 联结和动态抓取     15.1.3 投影和报表查询     15.1.4 按示例查询    15.2 利用原生的SQL查询     15.2.1 自动的结果集处理     15.2.2 获取标量值     15.2.3 Java Persistence中的原生SQL    15.3 过滤集合    15.4 高速缓存查询结果     15.4.1 启用查询结果高速缓存     15.4.2 理解查询高速缓存     15.4.3 什么时候使用查询高速缓存     15.4.4 自然标识符高速缓存查找    15.5 小结   第16章 创建和测试分层的应用程序    16.1 Web应用程序中的Hibernate     16.1.1 用例简介     16.1.2 编写控制器     16.1.3 OSIV模式     16.1.4 设计巧妙的领域模型    16.2 创建持久层     16.2.1 泛型的数据访问对象模式     16.2.2 实现泛型CRUD接口     16.2.3 实现实体DAO     16.2.4 利用数据访问对象    16.3 命令模式简介     16.3.1 基础接口     16.3.2 执行命令对象     16.3.3 命令模式的变形    16.4 利用EJB 3.0设计应用程序     16.4.1 利用有状态的bean实现会话     16.4.2 利用EJB编写DAO     16.4.3 利用依赖注入    16.5 测试     16.5.1 理解不同种类的测试     16.5.2 TestNG简介     16.5.3 测试持久层     16.5.4 考虑性能基准    16.6 小结   第17章 JBoss Seam简介    17.1 Java EE 5.0编程模型     17.1.1 JSF详解     17.1.2 EJB 3.0详解     17.1.3 用JSF和EJB 3.0编写Web应用程序     17.1.4 分析应用程序    17.2 用Seam改善应用程序     17.2.1 配置Seam     17.2.2 将页面绑定到有状态的Seam组件     17.2.3 分析Seam应用程序    17.3 理解上下文组件     17.3.1 编写登录页面     17.3.2 创建组件     17.3.3 给上下文变量起别名     17.3.4 完成登录/注销特性    17.4 验证用户输入     17.4.1 Hibernate Validator简介     17.4.2 创建注册页面     17.4.3 用Seam实现国际化    17.5 利用Seam简化持久化     17.5.1 实现对话     17.5.2 让Seam管理持久化上下文    17.6 小结  附录A SQL基础知识  附录B 映射快速参考
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值