• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling Stored Procedures with Ibatis

 
Fred Victa
Ranch Hand
Posts: 192
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have noticed that when using Ibatis to call stored procedures, that the call to the stored procedure can have question marks to represent the parameters such as the following:



Also, the call to the stored procedure can look like the following:


Which way is the preferred way? Why choose one over the other?
 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personal choice, the framework is trying to be 'helpful' by supporting various different syntax options. I personally prefer named options to question marks for less ambiguity, although either is fine.
 
Fred Victa
Ranch Hand
Posts: 192
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. I like the idea of less ambiguity. You know what the question marks stand for.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!