nerdexam
Oracle

1Z0-898 · Question #59

Consider a persistence application with following entity: @Entity Public class MyEntity { @Column (name = "FIELDA_COLUMN") int fieldA; int fieldB; int fieldC; int fieldD; An orm.xml is packaged in…

The correct answer is B. fieldB is mapped to column NEW_COLB C. fieldD is a persistent attribute of MyEntity. <basic name="fieldB"> <column name="NEW_COLB"> C:Persistent Fields Every non-static non-final entity field is persistent by default unless explicitly specified otherwise (e.g. by using the @Transient annotation).

JPA Fundamentals

Question

Consider a persistence application with following entity:

@Entity Public class MyEntity { @Column (name = "FIELDA_COLUMN") int fieldA; int fieldB; int fieldC; int fieldD; An orm.xml is packaged in the application with the following contents:

Which two of following statement are true. (Choose two)

Exhibit

1Z0-898 question #59 exhibit

Options

  • AfieldA is mapped to column FIELDA
  • BfieldB is mapped to column NEW_COLB
  • CfieldD is a persistent attribute of MyEntity
  • DfieldD is not a persistence attribute of MyEntity

How the community answered

(45 responses)
  • A
    7% (3)
  • B
    80% (36)
  • D
    13% (6)

Explanation

<basic name="fieldB"> <column name="NEW_COLB"> C:Persistent Fields Every non-static non-final entity field is persistent by default unless explicitly specified otherwise (e.g. by using the @Transient annotation).

Topics

#orm.xml#mapping override#@Column#persistence descriptor

Community Discussion

No community discussion yet for this question.

Full 1Z0-898 Practice