package pt.ist.vaadinframework.servlets; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import pt.ist.fenixframework.Config; import pt.ist.fenixframework.FenixFramework; import pt.ist.vaadinframework.example.domain.ExampleRoot; @SuppressWarnings("serial") public class FrameworkInitializer extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { super.init(config); FenixFramework.initialize(new Config() { { domainModelPath = "/example.dml"; dbAlias = "//localhost:3306/vaadin-test"; dbUsername = "root"; dbPassword = ""; updateRepositoryStructureIfNeeded = true; rootClass = ExampleRoot.class; } }); } }