Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Hibernate collections error

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating a feedback table to hold comments left by users for a particular venue so i'm using a FeedbackEmb object with the VenueEnt object. Here is the code in my VenueEnt



Now when running my action class, it adds the feedback obj and on commit i get this error.

Hibernate:
insert
into
VenueEnt_feedback
(VenueEnt_id, VENUE_FEEDBACK_ID, comments, date, name)
values
(?, ?, ?, ?, ?)
20:54:56,158 INFO LongType:140 - could not bind value 'POST_INSERT_INDICATOR' to parameter: 2; org.hibernate.id.IdentifierGeneratorFactory$2

I'm not sure what POST_INSERT_INDICATOR is but it should be an auto number.
Please help
 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to set the fetch attribute of CollectionOfElements to EAGER and try.
I am just guessing. lets see if it works
 
Joshua Elkino
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This yeilds the same result.
 
Be reasonable. You can't destroy everything. Where would you sit? How would you read a tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic