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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content