Hibernate version:
3.0.3
Regarding the following from the Hibernate docs 17.4:
Quote:
The order of the positional parameters are currently vital, as they must be in the same sequence as Hibernate expects them.
You can see the expected order by enabling debug logging for the org.hiberante.persister.entity level. With this level enabled Hibernate will print out the static SQL that is used to create, update, delete etc. entities. To see the expected sequence, remember to not include your custom SQL in the mapping files as that will override the Hibernate generated static sql.
After trying a few test cases, it seems the parameters are passed in the same order that they are defined in the mapping <class> (except for the ID on the end). Can anyone confirm this is always the case? With many stored procedures to map, the process described above would be too difficult...
Any word on when named parameters for stored procedures will be available?
Thanks for your help.