I want to write some query methods in repository layer. This method must ignore null parameters. For example:
List findByBarAndGoo(Bar barParam,
You could code this yourself in just a few lines:
List findByBarAndOptionalGoo(Bar bar, Goo goo) { return (goo == null) ? this.findByBar(bar) : this.findByBarAndGoo(bar, goo); }
Otherwise, I don't know if Spring-Data supports this out of the box.