java - Can I override PageImpl in Spring Data? -
there few methods incorporate pageimpl. there anyway override default page implementation returned spring data's repository methods?
if want add methods, use aspectj so. like:
public privileged aspect pageimplaspect { public boolean pageimpl.isempty() { // implementation here. } }
you need instruct aspectj compiler wave springdata library, can done in maven using weavedependencies in aspectj-maven-plugin plugin.
Comments
Post a Comment