CodeNewbie Community 🌱

Discussion on: Using Advanced LIKE Expressions in Spring boot

Collapse
 
jacobvarney profile image
jacobvarney

Hello Tristan!

I'm glad to hear you figured this out on your own. So we can compare, what was the original query that was giving you trouble?

Collapse
 
theplebdev profile image
Tristan

Here is a link to my github with the code: github.com/thePlebDev/JavaLeetCode...

Collapse
 
theplebdev profile image
Tristan • Edited
  • I would actually not recommend my above code any more. I have had issues with it in production. Instead I changed to derived query method, documentation can be found here: docs.spring.io/spring-data/jpa/doc...
  • The solution is : List<BlogPost>findByTitleIgnoreCaseContaining(String title);
  • I can't remember the exact code that gave me issues but It was a bug with the LIKE %:title% statements