You currently have to match whatever order Hibernate would use for its insert statement. Here is an excerpt from the docs (
http://www.hibernate.org/hib_docs/v3/reference/en/html/querysql.html#querysql-cud):
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.