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




Reply via email to