vendredi 27 février 2015

Is it possible to use one common repository for different entities in Spring data JPA


Vote count:

0




For example, I have entities like Car, Person, Customer. I need generic method like findBy using Specification in my repository class. I do not want to write different repository for each of the entities. Is it possible to create one common repository for all the entities and use it in my application. How to create the instance of the repository with different entity types. I am currently using spring boot for my testing



asked 44 secs ago







Is it possible to use one common repository for different entities in Spring data JPA

Aucun commentaire:

Enregistrer un commentaire