betweenGo

HibernateException: Found two representations of same collection

by 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

Related posts:

  1. Size of collection in a JSP/DSP page
  2. phpMyAdmin not starting
  3. Catching Oracle exceptions
  4. How to Log SQL on JBoss
  5. Mac Hibernate

:

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!