Is it possible to create a generic Repository interface to save POJOs in my spring-data project?
I have around 50 different objects and I don't want to create 50 corresponding repository interfaces one of each pojo ?
For example,
public interface FooRepository extends JpaRepository<Foo, Integer> { }
public interface BarRepository extends JpaRepository<Bar, Integer> { }
and so on...
I do see similar questions on this site but not having a really good example.
Thanks in advance for any help.