Oracle
1Z0-898 · Question #15
Given the following entity classes: @Entity @cacheable (true) Public class A { . . . } - - - - @Entity @cacheable (false) Public class B { . . .} @Entity Public class C { . . . } If the…
The correct answer is A. A only. ENABLE_SELECTIVE Caching is enabled for all entities for Cacheable(true) is specified.
Caching
Question
Given the following entity classes:
@Entity @cacheable (true) Public class A { . . . } - - - - @Entity @cacheable (false) Public class B { . . .} @Entity Public class C { . . . } If the shared-cache-mode element of persistence.xml is set to ENABLE _SERVICE, which entities are cached when using a persistence provider that supports caching?
Options
- AA only
- BA and B
- CA and C
- DA, B, and C
How the community answered
(24 responses)- A79% (19)
- B13% (3)
- C4% (1)
- D4% (1)
Explanation
ENABLE_SELECTIVE Caching is enabled for all entities for Cacheable(true) is specified.
Topics
#@Cacheable#shared-cache-mode#ENABLE_SELECTIVE#second-level cache
Community Discussion
No community discussion yet for this question.