So I got this project coming up at my university, and we are supposed to build a Java web app…my framework of choice was Vaadin of course for its beauty and simplicity, but i was hoping if someone could help me make a decision if i should use Hibernate with Vaadin or JPA…which one is simpler to configure and use???..also if someone could point me to a tutorial on using either with vaadin, i would really appreciate that… thank you for your time…
To clarify a bit of the terminology: JPA is a specification, Hibernate is an implementation of that specification. JPA isn’t exactly meant for stateful applications like Vaadin, so getting everything to work properly can be a bit tricky. Don’t worry, I’ve got some good news for you: I’ve recently published a library called
Vaadin application foundation and one of the modules provided by the library is JPA based persistence which takes care of some of these tricky parts.
Take a look at the persistence module’s
documentation to get an idea how to set up and how to use the persistence module. You can also take a look at the
example application to get some idea how to use the Vaadin AppFoundation library.