Mapping id in hbm.xml file MyEclipse IDE > Off Topic This topic has 2 replies, 2 voices, and was last updated 17 years, 4 months ago by odelyag. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts October 8, 2007 at 12:44 pm #276653 Reply odelyagMember Hello, I assigned the id generator to be of type <generator class=”sequence”> <param name=”sequence”>obituary_sequence</param> </generator> But get an error: could not get next sequence value. I m using Oracle 9. Do I have to declare something else in the table itself? or anywhere else in the code? October 8, 2007 at 1:10 pm #276657 Reply Loyal WaterMember Moving to Off Topic >> Software Development October 9, 2007 at 3:18 am #276675 Reply odelyagMember Hi, I solved the problem. I didn’t create the seqeunce in the table. After adding: CREATE SEQUENCE obituary_sequence INCREMENT BY 1 START WITH 100 it works fine. My thanks Author Posts Viewing 3 posts - 1 through 3 (of 3 total) Reply To: Mapping id in hbm.xml file You must be logged in to post in the forum log in