The CallableStatement interface used to execute SQL stored procedures. The JDBC API provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
i have annotated Hibernate class (ie, Hello), which packaged in com.leo ..
if i want to call the stored procedure, do i have to provide a mapping file (.hbm.xml) also?
so do i have to run the tasks? :
1. Create JPA Hibernate Annotation Class (Hello)
2. Create Mapping File (Hello.hbm.xml)
3. Adding mapping class to Hibernate Configuration
4. Adding mapping resource to Hibernate Configuartion also (Hello.hbm.xml)
am i right?..
Please Correct Me if i'm Wrong..
Thanks a lot..
Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Cameron Wallace McKenzie
author and cow tipper