Quote:
2. I set the read-write in the cache usage for the read-write tables.
3. In the ehcache I have overrided the read-write regions with values to zero; since I did not want it to be cache.
In my opinion there seems to be all right to accomplish the requirement, just one thing:
If you don't want cache usage for the read-write tables,
then personally I would simply do not configure them for being cached in 2L at all.
In other words:
Instead to define
Code:
@Entity
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class com.partylite.ge.persistence.hibernate.ConsultantDemographic
and defining maxElementsInMemory="0" , overflowToDisk="false" on regarding cacheRegion.
simply omit the @Cache tag on this class.