Sorry,
i think i misunderstood something.
I use hibernate with Oracle, xdoclet, Struts and Tomcat.
How can i load the files xdoclet create for every Class into a Session Factory?
With this Struts Plugin Example i create a SessionFactory and Register it to the ServletContext.
http://www.hibernate.org/105.html
But at this Moment i have to update the mapping resource tags in hibernate.cfg.xml by hand.
<hibernate-configuration>
<session-factory>
<property...
<!-- Mapping files -->
<mapping resource="/BaseObject.hbm.xml"/> //Added by myself
<mapping resource="/SampleObject.hbm.xml"/> //Added by myself
....
</session-factory>
</hibernate-configuration>
I there a way to do this automatic?
Jaraz