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

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -