Hi Kelly,
We don't support predicates in this form on a standard repository method
yet. The closest thing I can probably offer is a simplified version of the
criteria API, as documented here:
http://deltaspike.apache.org/documentation/data.html#_jpa_criteria_api_support
(this has still its limits)

Alternatively, if you look for something like Querydsl integration, an
extension might be a relatively simple way to achieve this:
http://deltaspike.apache.org/documentation/data.html#_extensions

Cheers,
Thomas


On Thu, Mar 26, 2015 at 12:42 PM, Kelly Goedert <[email protected]>
wrote:

> Hi,
>
> I am looking for a way to have better dynamic queries in my project. I
> found spring data and deltaspike data. One thing spring data appears to be
> able to do is to have something like this:
>
> findAll(bl.branchName.eq(“CitiBank”).and((bl.state.eq(“Texas”).or(b1.state.
> eq(“Connecticut”)))
>
> which is the ability to pass a Predicate as a parameter do the Repository
> interface.
>
> Is there a way to achieve this kind of dynamic query with deltaspike data?
>
> Thanks
>
> Kelly
>

Reply via email to