How to predict the parameter order for custom SQL for CRUD by Hibernate

Solution Verified - Updated -

Issue

This document talking about how to predict the parameter order for custom SQL.

https://docs.jboss.org/hibernate/orm/5.3/userguide/html_single/Hibernate_User_Guide.html#sql-crud

The parameter order is important and is defined by the order Hibernate handles properties. You can see the expected order by enabling debug logging, so Hibernate can print out the static SQL that is used to create, update, delete etc. entities.

Is there any other solutions to achieve this?

Environment

  • Red Hat Fuse 7.5
  • Hibernate 5.3.10.Final-redhat-00001

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In