Should the session be flushed explicitly when using hibernate with second level cache in order to avoid constraint violation exceptions?

Solution Unverified - Updated -

Issue

When using persistence via Hibernate/JPA API with second level cache on, would the order of operations be preserved or special care should be taken to avoid constraint violation exceptions?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content