<bean id="sessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
<property name="dataSource"><ref local="dataSource"/></property>
<property name="configLocation">
<value>/WEB-INF/hibernate.cfg.xml</value>
</property>
</bean>


That's why.

The hibernatecfg subtask will create the hibernate.cfg.xml for you, including a mapped list of all hbm.xml files it discovers. This relieves you of the need to maintain that list yourself, which as far as I know is the whole point behind XDoclet.


Mark Lowe wrote:


On 24 Mar 2004, at 11:59, Konstantin Priblouda wrote:


--- Mark Lowe <[EMAIL PROTECTED]> wrote:


  But I want to create only one hibernate mapping
file, and not one .hbm.xml mapping file for each
class.


I could be off mark here, but thats what xdoclet is
for, getting around
the problem of having multiple disparate resources.
I doubt hibernate
supports having a single mapping file, but I'd ask
this question on the
hibernate forum before seeing whether xdoclet can do
it, otherwise it
would be wasted effort.



HIbernate supports single mapping file. But they say it's not preferred, but merely tolerated.

After all, when xdoclet generates it it just does not
matter if it is one, or more. It ends up buried deep
into package hierarchy of distribution jar file,
and hibernate loads it automagically.


Well you learn something new everyday..

Still sounds like an alternative solution to what xdoclet provides. If you have all the mappings stored in a single xml file then I'd say this solves the problem of having many mapping files to maintain.

As for trying to get xdoclet to generate a single mapping file, well I really don't understand the requirement. Given that your tags will be stored in different source files, what benefit will there be in generating one mapping file from these?

Oh well I guess each to their own.




regards,


=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user




------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to