File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Oracle squence in Hibernate

 
gi tos
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to use an Oracle sequence with hibernate.

the problem is that the sequence will not be use as an ID. But to update a field when some conditions are available.

so I want to do something like this:

update MY_TABLE set NUM_VAL = select MY_SEQ.nextval

I found many examples but all of theme are talking about a sequence that is user as an ID:



 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic