Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling Stored proc using Hibernate @NamedNativeQuery

 
Ashiish Sharma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am a newbie in hibernate, I am using @javax.persistence.NamedNativeQuery to resolve my stored proc calls from hibernate to mysql but i am getting errors.

Please help:

My persistent class is:



My mysql stored proc is:



The main method that is calling this code is as:



My hibernate config file is as :



On code execution i am getting following error/exception:



Please help what is going wrong and help me get it corrected. Also refer me to suitable links where i can learn more about this technique.

My stack is:

Mysql Version 14.12 Distrib 5.0.67
Java
Hibernate 3

Thanks in advance

Ashish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic