Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

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

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???)


Helen Ge
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!