Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

will the Query object always take preference over EntityManager on setting flushmode?

 
Helen Ge
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a question regarding the flush mode setting on either the EntityManager or the Query object.

since the setFlushMode method is available in both EntityManager and Query interface, then which one takes the preference?

For example, If the EntityManager has been configured with setFlushMode(FlushModeType.AUTO) and the Query object has been called with setFlushMode(FlushModeType.COMMIT), then will the preference goes to the Query object? (COMMIT in this case???)


thanks

Helen Ge
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic