Using Spring Data JPA with Hibernate, are these two annotations interchangeable?
More specifically, can the Spring annotation replace the Hibernate annotation, to avoid any direct Hibernate dependency in the entity? If not, is there any reason to have both annotations on the same entity?