Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate newbie - Data sequence

 
Padma Priya
Ranch Hand
Posts: 123
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have problem running this hibernate project for Data sequence.

I am providing the details below

I am using Eclipse.

I have created a table in Apache Derby as follows


My Java file is as follows



My book.hbm.xml file is as follows(same directory as Bookch2)



My hibernate.cfg.xml is as follows



The client code is as follows


I am getting the following error when i run the Launch_2_1



Could anyone of you all please help me out with this code. What am i doing wrong.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is unnecessarily difficult to read. You can edit your post by using the button.
 
Charan kumar sarvepalli
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Derby does not support sequences like Oracle, but it supports identity columns.

check this is thread http://www.coderanch.com/t/418835/java-EJB-SCBCD/certification/Apache-Derby-Sql
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic