persistence@glassfish.java.net

Re: Disable TopLink caching

From: Tom Ware <tom.ware_at_oracle.com>
Date: Wed, 23 Aug 2006 11:21:22 -0400

Hi Markus,

   In JPA, when using an extended persistence context we will cache
between transactions.

  The toplink.cache.type.default property affects the caching of the
TopLink ServerSession that underlies the EntityManagerFactory.
EntityManager's using an extended persistence context will be based on a
TopLink UnitOfWork which, in order to maintain object identity, has a
more complete cache.

-Tom

Markus Fuchs wrote:

>Hi Tom,
>
>Is it possible to disable TopLink's between transactions cache by setting
>
><property name="toplink.cache.type.default" value="NONE"/>
>
>in persistence.xml?
>
>Thanks,
>
>-- markus.
>
>
>
>