deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matti Tahvonen <>
Subject Re: Implementing case insensitive filtering with the data module
Date Mon, 23 Feb 2015 09:00:12 GMT

I created a JURA issue for the ignore case:

You are making remarkable job with this project, big thanks! Marketing is something where
you lose to Spring Data more than in features. I'll try to spread some DeltaSpike Data awareness
among Vaadin developers soon!


> On 23 Feb 2015, at 10:41 , Thomas Hug <> wrote:
> Hey Matti
> First of all thanks for all the great feedback - always glad to hear this
> makes someone's life easier :-)
> For the method expressions, as you noted case insensitivity is currently
> not supported, but it should not be too expensive to implement it (simplest
> is probably introducing IgnoreCase for (Not)Equals and Like comparisons as
> Spring Data has). Would you mind creating a JIRA issue for this (
> Helps us keeping track
> of those ideas.
> For your second point, using QueryResult is indeed the official way of
> doing count queries, sorting and pagination for now. What I had in mind for
> method expressions though is to make this a little more flexible so we can
> add different operations depending on the method prefix - beside doing
> counts it could also be used to run removeBy queries (we already have a
> JIRA issue for this). Unfortunately unlike the Spring Data guys I do
> something different as a day job :-) so it might still take a little until
> I find development time.
> Cheers,
> Thomas
> On Sun, Feb 22, 2015 at 10:32 PM, Matti Tahvonen <> wrote:
>> Hi,
>> I'm learning DeltaSpike Data basics and will probably write an article on
>> the topic as well soon. So far I love it, Spring Data like awesomeness for
>> the Java EE world!
>> I faced a small issue when trying to implement simple filtering use case
>> that I had done previously with Spring Data. With filtering one usually
>> wants case insensitive string comparison for the queries. In Spring Data
>> one can append "IgnoreCase" to method name to achieve this. The same don't
>> seem to work with DeltaSpike Data, is there some other methods to achieve
>> this when using naming conventions only? "Upper" or "Lower" for string
>> properties would do as well. The method name I use in Spring Data is
>> "findByNameLikeIgnoreCase".
>> Another small issue with the same use case is generating a method like
>> countByNameLike method. Converting my example from Spring Data made me try
>> that, but I guess that is not supported? Any plans for such? I noticed the
>> QueryResult object that I can use as a return type and workaround this in
>> an elegant manner. But, if it is easy to implement it might be a good
>> feature to help transitioning from Spring Data to DeltaSpike Data.
>> BTW. Compared to Spring Data, query by example stuff is brilliant
>> addition, and there the defaults with "like queries" are really handy
>> (ignore case and automatic addition of % characters to filters). Thanks for
>> a great library!
>> cheers,
>> matti

View raw message