[quote="kalramadevi03"]Hi
Can anyone explain what will be the disadvantages invoking stored procedurs using hibernate.
Please explain me the pros and cons of Hibernate for stored procedure and the best way to invoke stored Procedures in Java.
Thanks & REgards[/quote]
Hello:
I have did one process that i invoke Store Procedure.
According to my experience, I can do my Store Procedure in which I specific any "columns names" from a "select" sentence. But, some time i have to invoke other store procedured did by other, and i found some Store Procedure is no "column name" specific, so... in my Hibernate Mapping SQL-Query context, when i Put:
<return-scalar column="someColumnName" type="string"/>
<return-scalar column="" type="string"/> --> Columns wich has no column name
<return-scalar column="" type="string"/> --> Columns wich has no column name
The Store Procedure Context is like:
select "ssss" as 'someColumnName', 3+5,5+6 from Table x
So... Did you see, that was a great "Cons" using Hibernate to invoke Store Procedure (when it was not did by yourself), because for Hibernate, you must specific properties to return.
Requests for comments.
Last edited by neketsushonen on Thu May 04, 2006 9:37 am, edited 1 time in total.
|