--- khote <[EMAIL PROTECTED]> wrote:
> I'm looking at the springframework and all that. It
> would be nice to
> "discover" the hbm.xml files in the jar somehow
> during a configuration. If
> I use the springframework beans method, I still have
> to know what the hbm's
> are after xdoclet and create the spring beans xml
> file manually, losing much
> of the advantage. I've learned how to use
> commons-discovery to find the
> single hibernate.properties file, and it works
> successfully with
> cfg.addProperties ... I'm still trying to figure out
> how to "glob" files
> with discovery, so I can do away with hardcoding the
> names of the hbm's in
> my hibernate service initialization.
>
> I saw the jbossservice seems to know what the
> mapping files are when it
> builds jboss-service.xml, there must be something I
> can snatch from that.
It's really easy.
Just write small template, and process it with
templatedoclet for all classes having @hibernate.class
on them - you will be able to gobble up list of
hbm.xml
and put it in whatever for you like.
You will need something like thos in youtr
project.properties to get the job done:
---%<--------
# infobean generation ( for testing )
maven.xdoclet.xdoclet.template.0=true
maven.xdoclet.xdoclet.template.0.destinationFile={0}Factory.java
maven.xdoclet.xdoclet.template.0.templateFile=${basedir}/src/xdoclet/infobean-factory.xdt
maven.xdoclet.xdoclet.template.0.havingClassTag=infobean.factory
---%<------------
And if you have something special for spring - just
contribute it. It's on my middle range radar now.
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!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user