This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

org.hibernate.HibernateException: null index column for collection: org.jbpm.graph.exe.ProcessInstan  RSS feed

 
Ashok Mor
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am getting following error

org.hibernate.HibernateException: null index column for collection: org.jbpm.graph.exe.ProcessInstance.instances

My mapping for map is something like below





So any clue in this?
 
Emanuel Kadziela
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You did not list much code, but a quick glance at org.jbpm.graph.exe.ProcessInstance.instances seems to indicate that instances are a List not a Map, and lists should be mapped with <list> in hibernate (no <map>) and need an <index> column reference.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!