betweenGo

HibernateException: Found two representations of same collection

by Frank Kim on Jan.26, 2007, under Hibernate

Sometimes you might stumble upon this confusing exception.

org.hibernate.HibernateException: Found two representations of same collection: com.betweengo.Foos

This could have happened because after clearing a Hibernate session (session.clear()) you updated a property that contains a collection. I found just making sure to clear the session once seemed to fix the problem but that may not be a suitable solution in more complex situations.

More information about this problem can be found at http://forum.hibernate.org/viewtopic.php?p=2231400.

  • Share/Bookmark

Related posts:

  1. Size of collection in a JSP/DSP page
  2. Eclipse won’t start after Windows shutdown
  3. How to Log SQL on JBoss
  4. Mac Hibernate
  5. Catching Oracle exceptions

:

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!