title: Jboss cache with Hibernate
body: <p>I am very new to this caching techniques. I just managed to configure JBossCache with Hibernate on JBoss AS 4.23 GA. </p>
  
  <p>My question is Suppose I have two different configurations defined in the configuration file. One is optimistic-entity and second one is pessimistic-entity. I want to use optimistic-entity configuration for one set of entities and pessimistic-entity configuration for another set of entities. But hibernate provides only one set of configuration with hibernate.cache.region.jbc2.cfg.entity="....  " which is common to all entities.</p>
  
  <p>Now how can I use two different configurations for two sets of entities, one optmistic-entity and another one is pessimistic-entity.</p>
  
  <p>Is it possible?</p>
  
  <p>Thanks</p>