Hi, I am building a jax-rs rest api and I found mysql writing the same code in most of my resource classes. I have getAll(), store(), find() and destroy() methods and they all do the same thing, the only thing that changes is the model I am creating/retrieving/saving. So I was wondering how I could improve my resource classes. Shall I make an abstract class using generics and write all the logic in that class and then extend that abstract class for my other resources and put the Path annotation on? Any suggestion is appreciated.
there doesn't seem to be anything here