SDA Commons Server Hibernate Example¶
The module provides an example application
on how to use the HibernateBundle
.
The application provides a simple REST endpoint to demonstrate the creation of a
transactional context using the @UnitOfWork
annotation. More details can be found on the Dropwizard Hibernate documentation page
It also comprises two example models, one for REST resources and one for the hibernate entity model.
Manager objects that encapsulates the db access can be tested separately in Unit tests as shown in this example.