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).
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
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)- A7% (3)
- B80% (36)
- D13% (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
Community Discussion
No community discussion yet for this question.
