READ Free Dumps For Oracle- 1z0-898
Question ID 4596 | An application creates a TypedQuery object to perform a query, and sets the query object’s flush mode by calling setFlushMode (FlushModeType.commit). The query is executed within a transaction. |
Option A | A. Updates to the database tables may occur anytime during the transaction associated with the query. |
Option B | B. Updates to the entities that can affect the outcome of the query cannot be flushed to the database until the transaction commits. |
Option C | C. Changes to the entities in this transaction cannot be flushed to the database until the transaction commits. |
Option D | D. setFlushMode cannot be called on a TypedQuery object. |
Correct Answer | B |
Question ID 4597 | A developer needs to include a set of managed classes in a persistence unit. Which two solutions are correct? (Choose two.) |
Option A | A. Place the class files in the orm.xml file. |
Option B | B. Place the class files in the root of the persistence unit. |
Option C | C. Place the class files in any mapping file that is included on the classpath. |
Option D | D. Place the class files in any jar on the classpath that is included in the persistence unit. |
Correct Answer | B,D |