How to supply Hibernate properties ?

175 views
Skip to first unread message

Leonel Gayard

unread,
Dec 6, 2020, 2:58:43 PM12/6/20
to Quarkus Development mailing list
I want to configure Hibernate/JPA to allow null parameters in stored procedure calls.

In Hibernate, this is done with property hibernate.proc.param_null_passing as per https://docs.jboss.org/hibernate/orm/5.4/userguide/html_single/Hibernate_User_Guide.html#configurations-query

How can I supply this property?

Some stackoverflow answers suggest using file persistence.xml, but they do not consider Quarkus; also, my app has been working without this file and I don't want to introduce it now.

I wish I could add a property to file application.properties in the same way I can add other Hibernate-related properties, as in https://quarkus.io/guides/hibernate-orm#hibernate-configuration-properties

Thanks,
Leonel

johnny....@gmail.com

unread,
May 11, 2022, 7:50:23 AM5/11/22
to Quarkus Development mailing list
Hi, 

i have found this question that hadn't been answered yet. I'm also interested in a very specific hibernate property (hibernate.criteria.literal_handling_mode). It works when using a "persistence.xml". 

I'd too be interested if there are plans to "let through" all hibernate properties or to add more of them? 

A solution within the application.properties (or a similar file) would be convenient. On the other hand i can understand that it won't make any sense to replicate all hibernate properties in quarkus. As long as the persistence.xml is supported, it is (at least in my opinion) not a big deal to solve it that way. 

Best regards,
Johnny

Reply all
Reply to author
Forward
0 new messages