FAQ

This is a compilation of common usage doubts, tips and workarounds.

How do I configure the manager for different databases?

Access to different databases can be configured used the standard Hibernate configuration scheme. That is with the <dataSourceName>.cfg.xml file. In this case, it's the customMessages.cfg.xml file. You can read all about the available configurations options, namely how to configure the database to use, here. On the lower part of the page there's a section about XML file configurations.

How do I force the ORM to run and update the DAOs?

Once again this is done using the Hibernate configuration file. To force the data model access objects generation you simply add the following line to customMessages.cfg.xml file:

  < property name="hbm2ddl.auto">update</property-->