This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate collections error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate collections error " Watch "Hibernate collections error " New topic

Hibernate collections error

Joshua Elkino
Ranch Hand

Joined: Jul 24, 2007
Posts: 91
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.

(VenueEnt_id, VENUE_FEEDBACK_ID, comments, date, name)
(?, ?, ?, ?, ?)
20:54:56,158 INFO LongType:140 - could not bind value 'POST_INSERT_INDICATOR' to parameter: 2;$2

I'm not sure what POST_INSERT_INDICATOR is but it should be an auto number.
Please help
Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
Try to set the fetch attribute of CollectionOfElements to EAGER and try.
I am just guessing. lets see if it works

Paras Jain
SCJP 5.0
Joshua Elkino
Ranch Hand

Joined: Jul 24, 2007
Posts: 91

This yeilds the same result.
I agree. Here's the link:
subject: Hibernate collections error
Similar Threads
Hibernate insert or select gives "Identifier of an instance altered"
Error reading resource Hibernate
HibernateException - Wrong column type
I'm not able to insert record in Derby using Hibernate
Hibernate mapping issue