Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Stored procedure in spring with hibernate

 
santosh dhulipala
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am trying to call a stored procedure using CreateSQLQuery method and i am getting unkone entity exception
Here is my entity class


DAO class



My spring class
 
santosh dhulipala
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
spring configuretion xML file


hibernate configuration file


Stack TRACE

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't look like its anything to do with the SP, you just have not mapped test.Login_Validate, either as part of your Hibernate config file of using annotations.
 
santosh dhulipala
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is excuting when i remove the addEntity method in LoginDAO.
but generating class cast exception
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic