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

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -