This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in executing procedure using hibernate and postgreSQL db

ashokkumar ganesan
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I m trying to execute a procedure using hibernate.
My dataabse is postgreSQL and i m using hibernate 3.0.
This is my below code.

I know the xml way of executing the procedure .
but in my case the procedure name will come from runtime .
so following this technique.

when i execute this i m getting the following error.

class org.postgresql.jdbc2.Jdbc2CallableStatement
Exception in thread "main" java.lang.AbstractMethodError: org.postgresql.jdbc2.Jdbc2CallableStatement.setInt(Ljava/lang/String;I)V

I bascially have two doubts.
1.Is this a correct way or executing procedures ?? (I cannot use the xml way because the procedure name is not known)
so for calling a parameterised procedure via hiberante is there any better way.
2.I tried to google and find the reason for error . i can see its an abstract class in postgreSQL dialect . so is there a way to solve this problem

Hope someone will show me some way out :-) :-)
Thanks in advance
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!