nerdexam
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)
  • A
    79% (19)
  • B
    13% (3)
  • C
    4% (1)
  • D
    4% (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.

Full 1Z0-898 Practice