We are currently using Spring MVC to implement REST web services. We now want to implement some kind of data persistence, and I am looking at what the options are. Spring Transactions + Hibernate + MySQL seem to be a quite popular approach, but every single blog / tutorial I have looked at does it differently.
Can anyone guide me to what could be considered the "best practice" for data persistance using Spring? I would like to make it annotation based, as this seems more natural and maintainable to me.
But now in some places I have read that HibernateTemplate should not be used anymore. And some people use the *Dao interface and *DaoImpl with @Repository approach, while others use *Service with @Service approach.
Thanks in advance for any advice.