org.hibernate.exception.SQLGrammarException: could not collection element by index

Hibernate JIRA | Paul Roe | 10 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0
  2. 0

    Root Cause Analysis

    1. org.hibernate.exception.SQLGrammarException

      could not collection element by index

      at org.hibernate.exception.SQLStateConverter.convert()
    2. Hibernate
      OneToManyPersister.getElementByIndex
      1. org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
      2. org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
      3. org.hibernate.loader.Loader.loadEntity(Loader.java:1841)
      4. org.hibernate.loader.entity.CollectionElementLoader.loadElement(CollectionElementLoader.java:72)
      5. org.hibernate.persister.collection.OneToManyPersister.getElementByIndex(OneToManyPersister.java:360)
      5 frames
    3. Hibernate
      PersistentMap.get
      1. org.hibernate.collection.AbstractPersistentCollection.readElementByIndex(AbstractPersistentCollection.java:158)
      2. org.hibernate.collection.PersistentMap.get(PersistentMap.java:146)
      2 frames