aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes May I know what does this question asking? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "May I know what does this question asking?" Watch "May I know what does this question asking?" New topic
Author

May I know what does this question asking?

Fei Wong
Greenhorn

Joined: Jun 15, 2009
Posts: 11
Hi, I don't understand what does this question asking:

Under which two conditions can the developer expect the persistence provider to ensure that all changes made to the persistence context in the transaction are visible to the processing of the query?

I just don't understand the term "visible to the processing of the query".

Can anyone please explain to me?

Thank You very much
Logan Lee
Greenhorn

Joined: Oct 28, 2009
Posts: 18

I think this question goes about the situation where you first perform operations on the entitymanger and then you use run a query (JPQL) that uses this data also in one transaction.

To rephrase: If you for example update an entity using the entitymanager and then you run a query that will display fields from that entity, how can you make sure the query reflects the changes you've done via the entity manager?

--> See the FlushModeType :
http://download.oracle.com/javaee/5/api/javax/persistence/FlushModeType.html

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: May I know what does this question asking?