A developer wants to model the grades for a student as a Map<course, integer>. Assume that
Student and Course are entitles, and that grades are modelled by integers. Which of the following
two statements are correct? (Choose two)
A. The developer can model the grades as an element collection in the Student entity.
B. The developer can model the grades as a one To Many relationship in the Student entity.
C. The mapping for the key of the map can be specified by the @MapKeycolumn annotation.
D. The mapping for the value of the map can be specified by the @Column annotation
In my view answer should be A,D;but actual answer was A,C
An application that uses container-managed transaction demarcation creates a query within an
active transaction and receives a QueryTimeoutException. Which of those scenarios describes what
happens to the active transaction?
A. The statement and the transaction continue.
B. The query is recreated within the current transaction.
C. The statement and the transaction are marked for rollback.
D. The statement is rolled back, but the transaction continues.
In my view answer should be D;but actual answer was C
subject: mock exam question on mapping collections