Hi,
I have hibernate annotated entities created in 'common' jar. This lib is then used by 3 different web apps, each one is interested in different cache strategy for entities. For example for 'person' @Entity annotated class, webapp 1 needs CacheConcurrencyStrategy.READ_ONLY but webapp 2 needs CacheConcurrencyStrategy.TRANSACTIONAL.
My question is this: is it possible to use hibernate annotations like javax.persistence.Entity on entity class and in the same time assign cache configuration via config file - that file I could differentiate beetween webapps.
best regards,
Bali
|