How do I ensure that query results incorporate data inserted or updated in an as yet uncommitted transaction?
Uuse conforming on a query. Calling the conformResultsInUnitOfWork() method on a query before it is executed will ensure that uncommited changes will be accounted for in the query result. This has the downside of requiring extra processing of a query result and should only be used when necessary. Refer to Using Conforming Queries and Descriptors in the Oracle TopLink Developer’s Guide for more information.