Optional parameters with named query in Hibernate?
Posted
by Ickster
on Stack Overflow
See other posts from Stack Overflow
or by Ickster
Published on 2010-03-15T01:41:36Z
Indexed on
2010/03/15
1:49 UTC
Read the original article
Hit count: 782
Is there any way to specify optional parameters (such as when search parameters are provided from a form and not all parameters are required) in a named query when using Hibernate? I'm using a native SQL query, but the question is probably applicable to named HQL queries as well.
I'm pretty sure the answer to this is 'no', but I haven't find the definitive answer in the documentation yet.
© Stack Overflow or respective owner