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.

Whether or not I'm using such a thing I still have to discover the hbms that
are packed in with the classes ... I'm working on a stupid ant task to take
care of that for me during the <preGoal name="java:jar-resources"> when I
copy them over into the classes directory, maybe I can autocreate a beans
xml file for myself this way.
Once I figure out the XDoclet template language maybe I can merge it all
together for myself as a subtask.... who knows...


----- Original Message ----- 
From: "Konstantin Priblouda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 24, 2003 12:58 AM
Subject: Re: [Xdoclet-user] Generating hibernate mapping files


>
> --- khote <[EMAIL PROTECTED]> wrote:
> > Is there a switch or setting that will enable the
> > creation of a single
> > hibernate.hbm.xml file, whether first or through
> > merging hbm.xml files?
> >
> I'm affraid not. Hibernate mappings are generated in
> per-class mode, so one class - one mapping
> ( except subclasses of course. they go in the same
> mapping file as superclass )
>
> 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



-------------------------------------------------------
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

Reply via email to