//generic repo public interface MyGenericRepo extends JpaRepository<GenericEntity,Integer> { } //entity class Place extends GenericEntity { private Event event; } //entity class Event extends GenericEntity{ } //entity class Offer extends GenericEntity { private Place place; } //entity class User extends GenericEntity { private Place place; } what should I take in GenericEntity and how to create a ModelManager to save and load entities