About Question enthuware.oce-jpad.v6.2.450 :
Posted: Thu Jan 05, 2012 9:11 am
Consider the following entity class hierarchy:
@Entity
@Cacheable(true)
public class Account{ ... }
@Entity
@Cacheable(false)
public class CheckingAccount extends Account{ ... }
@Entity
public class SavingsAccount extends Account{ ... }
Given that the persistence provider supports caching, what should be the value of shared-cache-mode so that all Account and SavingsAccount entities are cached but CheckingAccount entities are not cached?
I think DISABLE_SELECTIVE and ENABLE_SELECTIVE both will work for this senario.
@Entity
@Cacheable(true)
public class Account{ ... }
@Entity
@Cacheable(false)
public class CheckingAccount extends Account{ ... }
@Entity
public class SavingsAccount extends Account{ ... }
Given that the persistence provider supports caching, what should be the value of shared-cache-mode so that all Account and SavingsAccount entities are cached but CheckingAccount entities are not cached?
I think DISABLE_SELECTIVE and ENABLE_SELECTIVE both will work for this senario.