I am creating a Rest Server using JAX-RS (Jersy) + Spring. My DB layer is MySQL.
What would be the best way to store my data in my DB? Is there any alternative to Hibernate? I have never worked in Hibernate but there seems to be a lot of XML files and configuration.
It would be easier to use Grails or ROR instead. Can anyone point me out a better solution to persist my data in the project?
You should look into using the hibernate annotations rather than the XML files. They allow you to skip a lot of the XML configuration stuff and configure in line in your models.
http://java.dzone.com/articles/hibernate-3-annotations
http://www.infoq.com/news/2007/02/hibernate-annotations
I think this would probably be easier than making calls to another web framework such as RoR.