Why Hibernate throws 'Found two representations of same collection' exception ?

Solution Verified - Updated -

Issue

  • Why Hibernate is throwing "org.hibernate.HibernateException: Found two representations of same collection" exception in the end of the process, when session.flush() is called.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.2
  • Hibernate
    • 3.3.2.GA_CP0 {3,4}

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