This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem whne used custom squence name in JPA (hibernate) annotations

 
prash patil
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am facing one problem while using my predefined squence in the generator.

Below are the details.

I have created a table student with column id, `sname` 'sroll`,`scourse` and PRIMARY KEY (`id`)
The persistence xml have below data


and Student class is


And the sequence student_id_seq exist in the oracle.

But when used it

Got exception


Please suggest if I am missing anything.

Thanks in Advance

PP.
 
Christian Dillinger
Ranch Hand
Posts: 195
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your user bgadmin "see" the sequence?
 
prash patil
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it does!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic