{anchor:Session Factory}
h3.Session Factory
In order to access the hibernate mappings used by the EmailService, you need to add the following property in the sesionFactory bean of your applicationContext:
{code}
<property name="mappingLocations">
<list>
<value>classpath*:edu/mit/es/csf/email/hibernate/*.hbm.xml</value>
</list>
</property>
{code}
{tip}
Need more information about the session factory and hibernate mappings? Go to the [How to configure your application to use Hibernate Mappings | How to configure your application to use Hibernate Mappings] for more information.
{tip}
|