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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

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